-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb3a6c2
commit 33b7386
Showing
10 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Sylvain LE GAL <https://twitter.com/legalsylvain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
30 changes: 30 additions & 0 deletions
30
pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |