From 4a46215cb28f6cc81c22d83ba3eaf64d7f72309d Mon Sep 17 00:00:00 2001 From: Joseph Caburnay Date: Tue, 5 May 2020 08:00:47 +0000 Subject: [PATCH] [REF] pos_six: migration to OWL framework --- addons/pos_six/static/src/js/payment_six.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/pos_six/static/src/js/payment_six.js b/addons/pos_six/static/src/js/payment_six.js index 15bbcb6745d..01fd1313dc5 100644 --- a/addons/pos_six/static/src/js/payment_six.js +++ b/addons/pos_six/static/src/js/payment_six.js @@ -1,6 +1,7 @@ odoo.define('pos_six.payment', function (require) { "use strict"; +const { Gui } = require('point_of_sale.Gui'); var core = require('web.core'); var PaymentInterface = require('point_of_sale.PaymentInterface'); @@ -81,7 +82,7 @@ var PaymentSix = PaymentInterface.extend({ timapi.DefaultTerminalListener.prototype.transactionCompleted(event, data); if (event.exception) { - this.pos.gui.show_popup('error', { + Gui.showPopup('ErrorPopup', { title: _t('Terminal Error'), body: _t('Transaction was not processed correctly'), });