Skip to content

Commit bfabf76

Browse files
[IMP] pos_hide_banknote_button: isort, black, prettier.
1 parent 23149b3 commit bfabf76

File tree

5 files changed

+30
-22
lines changed

5 files changed

+30
-22
lines changed

pos_hide_banknote_button/__manifest__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
44

55
{
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',
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",
1515
],
16-
'data': [
17-
'views/assets.xml',
16+
"data": [
17+
"views/assets.xml",
1818
],
1919
}

pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@
44
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
55
*/
66

7-
87
.pos .payment-numpad .numpad button[data-action="+10"] {
98
visibility: hidden;
109
}
1110

12-
.pos .payment-numpad .numpad button[data-action='+20'] {
11+
.pos .payment-numpad .numpad button[data-action="+20"] {
1312
visibility: hidden;
1413
}
1514

16-
.pos .payment-numpad .numpad button[data-action='+50'] {
15+
.pos .payment-numpad .numpad button[data-action="+50"] {
1716
visibility: hidden;
1817
}
1918

20-
.pos .payment-numpad .numpad{
19+
.pos .payment-numpad .numpad {
2120
border-top: 0px solid;
2221
}
2322

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'] {
23+
.pos .payment-numpad .numpad button[data-action="1"],
24+
.pos .payment-numpad .numpad button[data-action="2"],
25+
.pos .payment-numpad .numpad button[data-action="3"],
26+
.pos .payment-numpad .numpad button[data-action="BACKSPACE"] {
2827
border-top: 1px solid;
2928
border-color: #cacaca;
3029
}

pos_hide_banknote_button/views/assets.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<!--
33
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
44
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
55
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
66
-->
7-
87
<odoo>
98

109
<template id="index" inherit_id="point_of_sale.index">
1110
<xpath expr="//head" position="inside">
12-
<link rel="stylesheet" href="/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css"/>
11+
<link
12+
rel="stylesheet"
13+
href="/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css"
14+
/>
1315
</xpath>
1416
</template>
1517

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../pos_hide_banknote_button
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)