From 593df4eb3f0c15620fda6d134c16c161f95a61bf Mon Sep 17 00:00:00 2001 From: dsolanki Date: Tue, 27 Apr 2021 14:09:17 +0530 Subject: [PATCH] [MIG] Migrate module pos_hide_banknote_button to v14. --- pos_hide_banknote_button/README.rst | 1 + pos_hide_banknote_button/__manifest__.py | 2 +- .../readme/CONTRIBUTORS.rst | 1 + .../src/css/pos_hide_banknote_button.css | 18 +++++------------- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/pos_hide_banknote_button/README.rst b/pos_hide_banknote_button/README.rst index 5c91061b68..d38190728b 100644 --- a/pos_hide_banknote_button/README.rst +++ b/pos_hide_banknote_button/README.rst @@ -66,6 +66,7 @@ Contributors ~~~~~~~~~~~~ * Sylvain LE GAL +* Dhara Solanki Maintainers ~~~~~~~~~~~ diff --git a/pos_hide_banknote_button/__manifest__.py b/pos_hide_banknote_button/__manifest__.py index 3a444cf638..290ab6e487 100644 --- a/pos_hide_banknote_button/__manifest__.py +++ b/pos_hide_banknote_button/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Point of Sale - Hide Banknote Buttons", - "version": "12.0.1.0.0", + "version": "14.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)", diff --git a/pos_hide_banknote_button/readme/CONTRIBUTORS.rst b/pos_hide_banknote_button/readme/CONTRIBUTORS.rst index 9f76a75bc1..fb83b4a946 100644 --- a/pos_hide_banknote_button/readme/CONTRIBUTORS.rst +++ b/pos_hide_banknote_button/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Sylvain LE GAL +* Dhara Solanki 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 0ccb056ff8..eef374c7dd 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,15 +4,7 @@ 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"] { - visibility: hidden; -} - -.pos .payment-numpad .numpad button[data-action="+50"] { +.pos .payment-numpad .numpad button.mode-button { visibility: hidden; } @@ -20,10 +12,10 @@ 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:first-child, +.pos .payment-numpad .numpad button:nth-child(2), +.pos .payment-numpad .numpad button:nth-child(3), +.pos .payment-numpad .numpad button:last-child { border-top: 1px solid; border-color: #cacaca; }