Skip to content

Commit 33b7386

Browse files
legalsylvaindsolanki-initos
authored andcommitted
[ADD] pos_hide_banknote_button
1 parent bb3a6c2 commit 33b7386

File tree

10 files changed

+120
-0
lines changed

10 files changed

+120
-0
lines changed

pos_hide_banknote_button/README.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=====================================
2+
Point of Sale - Hide Banknote Buttons
3+
=====================================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

pos_hide_banknote_button/__init__.py

Whitespace-only changes.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
2+
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
5+
{
6+
'name': 'Point of Sale - Hide Banknote Buttons',
7+
'version': '12.0.1.0.0',
8+
'category': 'Point Of Sale',
9+
'summary': 'Hide useless Banknote buttons in the PoS (+10, +20, +50)',
10+
'author': 'GRAP, Odoo Community Association (OCA)',
11+
'website': 'https://github.com/OCA/pos',
12+
'license': 'AGPL-3',
13+
'depends': [
14+
'point_of_sale',
15+
],
16+
'data': [
17+
'views/assets.xml',
18+
],
19+
}

pos_hide_banknote_button/i18n/fr.po

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_disable_change_cashier
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2020-09-03 13:47+0000\n"
10+
"PO-Revision-Date: 2020-09-03 13:47+0000\n"
11+
"Last-Translator: <>\n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: pos_disable_change_cashier
19+
#: model:ir.model.fields,field_description:pos_disable_change_cashier.field_pos_config__iface_change_cashier
20+
msgid "Change Cashier"
21+
msgstr "Changer de caisser"
22+
23+
#. module: pos_disable_change_cashier
24+
#: model:ir.model.fields,help:pos_disable_change_cashier.field_pos_config__iface_change_cashier
25+
#: model_terms:ir.ui.view,arch_db:pos_disable_change_cashier.pos_config_view_form
26+
msgid "Enable the possibility to change cashier"
27+
msgstr "Activer la possibilité de changer de caissier"
28+
29+
#. module: pos_disable_change_cashier
30+
#: model:ir.model,name:pos_disable_change_cashier.model_pos_config
31+
msgid "Point of Sale Configuration"
32+
msgstr "Paramétrage du point de vente"
33+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Sylvain LE GAL <https://twitter.com/legalsylvain>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This module extends Odoo Point Of Sale features, removing banknotes buttons
2+
in the payment screens.
3+
4+
Before the installation
5+
-----------------------
6+
7+
.. figure:: ../static/description/before.png
8+
9+
10+
After the installation
11+
----------------------
12+
13+
.. figure:: ../static/description/after.png
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
3+
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
4+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
5+
*/
6+
7+
8+
.pos .payment-numpad .numpad button[data-action="+10"] {
9+
visibility: hidden;
10+
}
11+
12+
.pos .payment-numpad .numpad button[data-action='+20'] {
13+
visibility: hidden;
14+
}
15+
16+
.pos .payment-numpad .numpad button[data-action='+50'] {
17+
visibility: hidden;
18+
}
19+
20+
.pos .payment-numpad .numpad{
21+
border-top: 0px solid;
22+
}
23+
24+
.pos .payment-numpad .numpad button[data-action='1'],
25+
.pos .payment-numpad .numpad button[data-action='2'],
26+
.pos .payment-numpad .numpad button[data-action='3'],
27+
.pos .payment-numpad .numpad button[data-action='BACKSPACE'] {
28+
border-top: 1px solid;
29+
border-color: #cacaca;
30+
}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
4+
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6+
-->
7+
8+
<odoo>
9+
10+
<template id="index" inherit_id="point_of_sale.index">
11+
<xpath expr="//head" position="inside">
12+
<link rel="stylesheet" href="/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css"/>
13+
</xpath>
14+
</template>
15+
16+
</odoo>

0 commit comments

Comments
 (0)