Skip to content

Commit

Permalink
[IMP] pos_hide_banknote_button: isort, black, prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsolanki-initos committed Apr 27, 2021
1 parent 23149b3 commit bfabf76
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 22 deletions.
22 changes: 11 additions & 11 deletions pos_hide_banknote_button/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# 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',
"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',
"data": [
"views/assets.xml",
],
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,26 @@
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'] {
.pos .payment-numpad .numpad button[data-action="+20"] {
visibility: hidden;
}

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

.pos .payment-numpad .numpad{
.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'] {
.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;
}
8 changes: 5 additions & 3 deletions pos_hide_banknote_button/views/assets.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<?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"/>
<link
rel="stylesheet"
href="/pos_hide_banknote_button/static/src/css/pos_hide_banknote_button.css"
/>
</xpath>
</template>

Expand Down
6 changes: 6 additions & 0 deletions setup/pos_hide_banknote_button/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit bfabf76

Please sign in to comment.