diff --git a/pos_hide_banknote_button/__manifest__.py b/pos_hide_banknote_button/__manifest__.py index 2bff239918..3a444cf638 100644 --- a/pos_hide_banknote_button/__manifest__.py +++ b/pos_hide_banknote_button/__manifest__.py @@ -3,17 +3,17 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': 'Point of Sale - Hide Banknote Buttons', - 'version': '12.0.1.0.0', - 'category': 'Point Of Sale', - 'summary': 'Hide useless Banknote buttons in the PoS (+10, +20, +50)', - 'author': 'GRAP, Odoo Community Association (OCA)', - 'website': 'https://github.com/OCA/pos', - 'license': 'AGPL-3', - 'depends': [ - 'point_of_sale', + "name": "Point of Sale - Hide Banknote Buttons", + "version": "12.0.1.0.0", + "category": "Point Of Sale", + "summary": "Hide useless Banknote buttons in the PoS (+10, +20, +50)", + "author": "GRAP, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/pos", + "license": "AGPL-3", + "depends": [ + "point_of_sale", ], - 'data': [ - 'views/assets.xml', + "data": [ + "views/assets.xml", ], } diff --git a/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css b/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css index 3192fd52b2..0ccb056ff8 100644 --- a/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css +++ b/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css @@ -4,27 +4,26 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */ - .pos .payment-numpad .numpad button[data-action="+10"] { visibility: hidden; } -.pos .payment-numpad .numpad button[data-action='+20'] { +.pos .payment-numpad .numpad button[data-action="+20"] { visibility: hidden; } -.pos .payment-numpad .numpad button[data-action='+50'] { +.pos .payment-numpad .numpad button[data-action="+50"] { visibility: hidden; } -.pos .payment-numpad .numpad{ +.pos .payment-numpad .numpad { border-top: 0px solid; } -.pos .payment-numpad .numpad button[data-action='1'], - .pos .payment-numpad .numpad button[data-action='2'], - .pos .payment-numpad .numpad button[data-action='3'], - .pos .payment-numpad .numpad button[data-action='BACKSPACE'] { +.pos .payment-numpad .numpad button[data-action="1"], +.pos .payment-numpad .numpad button[data-action="2"], +.pos .payment-numpad .numpad button[data-action="3"], +.pos .payment-numpad .numpad button[data-action="BACKSPACE"] { border-top: 1px solid; border-color: #cacaca; } diff --git a/pos_hide_banknote_button/views/assets.xml b/pos_hide_banknote_button/views/assets.xml index e0657e2dc3..8ca511a0c1 100644 --- a/pos_hide_banknote_button/views/assets.xml +++ b/pos_hide_banknote_button/views/assets.xml @@ -1,15 +1,17 @@ - + - diff --git a/setup/pos_hide_banknote_button/odoo/addons/pos_hide_banknote_button b/setup/pos_hide_banknote_button/odoo/addons/pos_hide_banknote_button new file mode 120000 index 0000000000..5ac43428d0 --- /dev/null +++ b/setup/pos_hide_banknote_button/odoo/addons/pos_hide_banknote_button @@ -0,0 +1 @@ +../../../../pos_hide_banknote_button \ No newline at end of file diff --git a/setup/pos_hide_banknote_button/setup.py b/setup/pos_hide_banknote_button/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/pos_hide_banknote_button/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)