diff --git a/pos_hide_banknote_button/README.rst b/pos_hide_banknote_button/README.rst new file mode 100644 index 00000000..107bb0d5 --- /dev/null +++ b/pos_hide_banknote_button/README.rst @@ -0,0 +1,8 @@ +===================================== +Point of Sale - Hide Banknote Buttons +===================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/pos_hide_banknote_button/__init__.py b/pos_hide_banknote_button/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pos_hide_banknote_button/__manifest__.py b/pos_hide_banknote_button/__manifest__.py new file mode 100644 index 00000000..2bff2399 --- /dev/null +++ b/pos_hide_banknote_button/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop) +# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) +# 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', + ], + 'data': [ + 'views/assets.xml', + ], +} diff --git a/pos_hide_banknote_button/i18n/fr.po b/pos_hide_banknote_button/i18n/fr.po new file mode 100644 index 00000000..0c8d7ab4 --- /dev/null +++ b/pos_hide_banknote_button/i18n/fr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * pos_disable_change_cashier +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-09-03 13:47+0000\n" +"PO-Revision-Date: 2020-09-03 13:47+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: pos_disable_change_cashier +#: model:ir.model.fields,field_description:pos_disable_change_cashier.field_pos_config__iface_change_cashier +msgid "Change Cashier" +msgstr "Changer de caisser" + +#. module: pos_disable_change_cashier +#: model:ir.model.fields,help:pos_disable_change_cashier.field_pos_config__iface_change_cashier +#: model_terms:ir.ui.view,arch_db:pos_disable_change_cashier.pos_config_view_form +msgid "Enable the possibility to change cashier" +msgstr "Activer la possibilité de changer de caissier" + +#. module: pos_disable_change_cashier +#: model:ir.model,name:pos_disable_change_cashier.model_pos_config +msgid "Point of Sale Configuration" +msgstr "Paramétrage du point de vente" + diff --git a/pos_hide_banknote_button/readme/CONTRIBUTORS.rst b/pos_hide_banknote_button/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..9f76a75b --- /dev/null +++ b/pos_hide_banknote_button/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sylvain LE GAL diff --git a/pos_hide_banknote_button/readme/DESCRIPTION.rst b/pos_hide_banknote_button/readme/DESCRIPTION.rst new file mode 100644 index 00000000..f1296d17 --- /dev/null +++ b/pos_hide_banknote_button/readme/DESCRIPTION.rst @@ -0,0 +1,13 @@ +This module extends Odoo Point Of Sale features, removing banknotes buttons +in the payment screens. + +Before the installation +----------------------- + + .. figure:: ../static/description/before.png + + +After the installation +---------------------- + + .. figure:: ../static/description/after.png diff --git a/pos_hide_banknote_button/static/description/after.png b/pos_hide_banknote_button/static/description/after.png new file mode 100644 index 00000000..ee36bb20 Binary files /dev/null and b/pos_hide_banknote_button/static/description/after.png differ diff --git a/pos_hide_banknote_button/static/description/before.png b/pos_hide_banknote_button/static/description/before.png new file mode 100644 index 00000000..455d4bcb Binary files /dev/null and b/pos_hide_banknote_button/static/description/before.png differ 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 new file mode 100644 index 00000000..3192fd52 --- /dev/null +++ b/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css @@ -0,0 +1,30 @@ +/* + Copyright (C) 2020 - Today: GRAP (http://www.grap.coop) + @author: Sylvain LE GAL (https://twitter.com/legalsylvain) + 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'] { + visibility: hidden; +} + +.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'] { + 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 new file mode 100644 index 00000000..e0657e2d --- /dev/null +++ b/pos_hide_banknote_button/views/assets.xml @@ -0,0 +1,16 @@ + + + + + + + +