Browse Source
Merge pull request #26 from akretion/8.0-enhance-customer-display
Merge pull request #26 from akretion/8.0-enhance-customer-display
pos_customer_display: Add button "Display Total to Customer" + port to new APIpull/33/head
Alexis de Lattre
10 years ago
11 changed files with 123 additions and 57 deletions
-
4pos_customer_display/__openerp__.py
-
31pos_customer_display/i18n/fr.po
-
29pos_customer_display/i18n/pos_customer_display.pot
-
28pos_customer_display/pos_customer_display.py
-
5pos_customer_display/pos_customer_display.xml
-
13pos_customer_display/pos_customer_display_demo.xml
-
15pos_customer_display/static/src/css/pos_customer_display.css
-
20pos_customer_display/static/src/js/customer_display.js
-
14pos_customer_display/static/src/xml/pos.xml
-
2pos_payment_terminal/static/src/js/pos_payment_terminal.js
-
19pos_payment_terminal/static/src/xml/pos_payment_terminal.xml
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<openerp> |
||||
|
<data noupdate="1"> |
||||
|
|
||||
|
|
||||
|
<record id="point_of_sale.pos_config_main" model="pos.config"> |
||||
|
<field name="iface_customer_display" eval="True"/> |
||||
|
</record> |
||||
|
|
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
@ -0,0 +1,15 @@ |
|||||
|
.pos .show-total-to-customer { |
||||
|
width: 220px; |
||||
|
height: 40px; |
||||
|
font-size: 16px; |
||||
|
cursor: pointer; |
||||
|
text-align: center; |
||||
|
box-sizing: border-box; |
||||
|
} |
||||
|
|
||||
|
.pos .show-total-to-customer-div { |
||||
|
float: left; |
||||
|
margin-right: 15px; |
||||
|
margin-left: 15px; |
||||
|
margin-top: 20px; |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<t t-extend="OrderWidget" > |
||||
|
<t t-jquery=".summary" t-operation="append"> |
||||
|
<t t-if="widget.pos.config.iface_customer_display"> |
||||
|
<div class="show-total-to-customer-div"> |
||||
|
<button class="show-total-to-customer"> |
||||
|
Display Total to Customer |
||||
|
</button> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</t> |
||||
|
</templates> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue