From bed0002f20b1f259e358363778e102f2f6f0d463 Mon Sep 17 00:00:00 2001 From: "David Monnom (moda)" Date: Tue, 2 May 2023 08:31:36 +0000 Subject: [PATCH] [FIX] pos_mercury: Wrong use of popup method Fixed the popup call. The call was made with the old method showPopup. The call is now made with the new .add method on the popup service. closes odoo/odoo#120274 X-original-commit: d174e6cdacfdde6973e4ced931bb7572b6bd0511 Signed-off-by: Samuel Degueldre Signed-off-by: Monnom David (moda) --- addons/pos_mercury/static/src/js/PaymentScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_mercury/static/src/js/PaymentScreen.js b/addons/pos_mercury/static/src/js/PaymentScreen.js index aa426b1258b..b7927f6c193 100644 --- a/addons/pos_mercury/static/src/js/PaymentScreen.js +++ b/addons/pos_mercury/static/src/js/PaymentScreen.js @@ -245,7 +245,7 @@ patch(PaymentScreen.prototype, "pos_mercury.PaymentScreen", { // the transaction deferred is used to update transaction status // if we have a previous deferred it indicates that this is a retry if (!old_deferred) { - self.showPopup(PaymentTransactionPopup, { + this.popup.add(PaymentTransactionPopup, { transaction: def, }); def.notify({