diff options
| author | Joseph Caburnay <jcb@odoo.com> | 2020-05-05 08:00:47 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2020-05-12 12:48:58 +0000 |
| commit | 4a46215cb28f6cc81c22d83ba3eaf64d7f72309d (patch) | |
| tree | 2eab054ee36755846ee35385174250eabf8af189 /addons/pos_six/static | |
| parent | f87838046c3bcb2b5a73ad18fbff268232a4f30a (diff) | |
[REF] pos_six: migration to OWL framework
Diffstat (limited to 'addons/pos_six/static')
| -rw-r--r-- | addons/pos_six/static/src/js/payment_six.js | 3 |
1 files changed, 2 insertions, 1 deletions
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'), }); |
