Browse Source

pos_payment_terminal : bigger button for start transaction with touchscreen

pull/440/head
Auélien DUMAINE 10 years ago
committed by Sylvain LE GAL
parent
commit
0bfe0aaf8a
  1. 6
      pos_payment_terminal/pos_payment_terminal_view.xml
  2. 2
      pos_payment_terminal/static/src/js/pos_payment_terminal.js
  3. 5
      pos_payment_terminal/static/src/xml/pos_payment_terminal.xml

6
pos_payment_terminal/pos_payment_terminal_view.xml

@ -21,5 +21,11 @@
</field>
</field>
</record>
<template id="index" name="pos_payment_terminal index" inherit_id="point_of_sale.index">
<xpath expr="//link[@id='pos-stylesheet']" position="after">
<link rel="stylesheet" href="/pos_payment_terminal/static/src/css/pos_payment_terminal.css" id="pos_payment_terminal-stylesheet"/>
</xpath>
</template>
</data>
</openerp>

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

@ -7,7 +7,7 @@ openerp.pos_payment_terminal = function(instance){
'currency_iso' : currency_iso,
'currency_iso_numeric' : currency_iso_numeric,
'payment_mode' : line.cashregister.journal.payment_mode};
alert(JSON.stringify(data));
// alert(JSON.stringify(data));
this.message('payment_terminal_transaction_start', {'payment_info' : JSON.stringify(data)});
},
});

5
pos_payment_terminal/static/src/xml/pos_payment_terminal.xml

@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="Paymentline" >
<t t-jquery=".paymentline-name" t-operation="append">
<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>
<t t-esc="line.cashregister.journal.payment_mode"/>
Start transaction
<!--<t t-esc="line.cashregister.journal.payment_mode"/> -->
</button>
</span>
<!-- </t> -->

Loading…
Cancel
Save