From 0501e58e5a3d93094222bf0da6c9daeebb06e591 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 7 Jul 2015 00:04:04 +0200 Subject: [PATCH] [FIX] bug #36 : take advantage of the recent update in the odoo codebase to properly get the 'name' of the currency --- pos_payment_terminal/README.rst | 4 ++++ pos_payment_terminal/static/src/js/pos_payment_terminal.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pos_payment_terminal/README.rst b/pos_payment_terminal/README.rst index 7dc931f6..6c1c22da 100644 --- a/pos_payment_terminal/README.rst +++ b/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 ` which was +merged in the *8.0* branch of Odoo on Github on July 2nd 2015. + Configuration ============= diff --git a/pos_payment_terminal/static/src/js/pos_payment_terminal.js b/pos_payment_terminal/static/src/js/pos_payment_terminal.js index 2c154a62..39ae910f 100755 --- a/pos_payment_terminal/static/src/js/pos_payment_terminal.js +++ b/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; },