Browse Source

[FIX] bug #36 : take advantage of the recent update in the odoo codebase to properly get the 'name' of the currency

pull/440/head
Alexis de Lattre 9 years ago
committed by Sylvain LE GAL
parent
commit
1156a4c2c8
  1. 4
      pos_payment_terminal/README.rst
  2. 2
      pos_payment_terminal/static/src/js/pos_payment_terminal.js

4
pos_payment_terminal/README.rst

@ -20,6 +20,10 @@ This module is designed to be installed on the
and old Sagem devices support the Telium protocol implemented in the
*hw_telium_payment_terminal* module.
This module requires an up-to-date version of Odoo v8 that includes
`this pull request <https://github.com/odoo/odoo/pull/7367>` which was
merged in the *8.0* branch of Odoo on Github on July 2nd 2015.
Configuration
=============

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

@ -25,7 +25,7 @@ openerp.pos_payment_terminal = function(instance){
var self = this;
if (line.cashregister.journal.payment_mode && this.pos.config.iface_payment_terminal){
el_node.querySelector('.payment-terminal-transaction-start')
.addEventListener('click', function(){self.pos.proxy.payment_terminal_transaction_start(line, self.pos.config.currency_id[1])});
.addEventListener('click', function(){self.pos.proxy.payment_terminal_transaction_start(line, self.pos.currency.name)});
}
return el_node;
},

Loading…
Cancel
Save