Browse Source

pos_customer_display: Add button "Display Total to Customer" and port to new API

pos_payment_terminal: code cleanup
pull/440/head
Alexis de Lattre 10 years ago
committed by Sylvain LE GAL
parent
commit
7be4cd50e2
  1. 2
      pos_payment_terminal/static/src/js/pos_payment_terminal.js
  2. 19
      pos_payment_terminal/static/src/xml/pos_payment_terminal.xml

2
pos_payment_terminal/static/src/js/pos_payment_terminal.js

@ -11,8 +11,6 @@ openerp.pos_payment_terminal = function(instance){
},
});
//TODO make the button bigger and with better name
var _super_PaymentScreenWidget_init_ = module.PaymentScreenWidget.prototype.init;
module.PaymentScreenWidget.prototype.init = function(parent, options){
_super_PaymentScreenWidget_init_.call(this, parent, options);

19
pos_payment_terminal/static/src/xml/pos_payment_terminal.xml

@ -2,16 +2,11 @@
<templates id="template" xml:space="preserve">
<t t-extend="Paymentline" >
<t t-jquery=".paymentline-input" t-operation="append">
<t t-if="line.cashregister.journal.payment_mode">
<!-- <t t-if="pos.config.iface_payment_terminal">-->
<span class="payment-terminal-transaction-start">
<button>
Start transaction
<!--<t t-esc="line.cashregister.journal.payment_mode"/> -->
</button>
</span>
<!-- </t> -->
</t>
</t>
</t>
<t t-if="line.cashregister.journal.payment_mode">
<span class="payment-terminal-transaction-start">
<button>Start transaction</button>
</span>
</t>
</t>
</t>
</templates>
Loading…
Cancel
Save