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. 7
      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; var _super_PaymentScreenWidget_init_ = module.PaymentScreenWidget.prototype.init;
module.PaymentScreenWidget.prototype.init = function(parent, options){ module.PaymentScreenWidget.prototype.init = function(parent, options){
_super_PaymentScreenWidget_init_.call(this, parent, options); _super_PaymentScreenWidget_init_.call(this, parent, options);

7
pos_payment_terminal/static/src/xml/pos_payment_terminal.xml

@ -3,14 +3,9 @@
<t t-extend="Paymentline" > <t t-extend="Paymentline" >
<t t-jquery=".paymentline-input" t-operation="append"> <t t-jquery=".paymentline-input" t-operation="append">
<t t-if="line.cashregister.journal.payment_mode"> <t t-if="line.cashregister.journal.payment_mode">
<!-- <t t-if="pos.config.iface_payment_terminal">-->
<span class="payment-terminal-transaction-start"> <span class="payment-terminal-transaction-start">
<button>
Start transaction
<!--<t t-esc="line.cashregister.journal.payment_mode"/> -->
</button>
<button>Start transaction</button>
</span> </span>
<!-- </t> -->
</t> </t>
</t> </t>
</t> </t>

Loading…
Cancel
Save