Browse Source

Merge PR #536 into 12.0

Signed-off-by chienandalu
pull/537/head
OCA-git-bot 4 years ago
parent
commit
2b01f630f7
  1. 8
      pos_hide_banknote_button/README.rst
  2. 0
      pos_hide_banknote_button/__init__.py
  3. 19
      pos_hide_banknote_button/__manifest__.py
  4. 33
      pos_hide_banknote_button/i18n/fr.po
  5. 1
      pos_hide_banknote_button/readme/CONTRIBUTORS.rst
  6. 13
      pos_hide_banknote_button/readme/DESCRIPTION.rst
  7. BIN
      pos_hide_banknote_button/static/description/after.png
  8. BIN
      pos_hide_banknote_button/static/description/before.png
  9. 30
      pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css
  10. 16
      pos_hide_banknote_button/views/assets.xml

8
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. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

0
pos_hide_banknote_button/__init__.py

19
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',
],
}

33
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"

1
pos_hide_banknote_button/readme/CONTRIBUTORS.rst

@ -0,0 +1 @@
* Sylvain LE GAL <https://twitter.com/legalsylvain>

13
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

BIN
pos_hide_banknote_button/static/description/after.png

After

Width: 660  |  Height: 486  |  Size: 24 KiB

BIN
pos_hide_banknote_button/static/description/before.png

After

Width: 669  |  Height: 489  |  Size: 26 KiB

30
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;
}

16
pos_hide_banknote_button/views/assets.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
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).
-->
<odoo>
<template id="index" inherit_id="point_of_sale.index">
<xpath expr="//head" position="inside">
<link rel="stylesheet" href="/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save