Skip to content

Commit

Permalink
[ADD] pos_hide_banknote_button
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain authored and dsolanki-initos committed Apr 27, 2021
1 parent bb3a6c2 commit 33b7386
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pos_hide_banknote_button/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
=====================================
Point of Sale - Hide Banknote Buttons
=====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Empty file.
19 changes: 19 additions & 0 deletions pos_hide_banknote_button/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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 changes: 33 additions & 0 deletions pos_hide_banknote_button/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions pos_hide_banknote_button/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL <https://twitter.com/legalsylvain>
13 changes: 13 additions & 0 deletions pos_hide_banknote_button/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions pos_hide_banknote_button/views/assets.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 33b7386

Please sign in to comment.