From aa5ba2a101bebb9ee1191191ccd94d3b4654bced Mon Sep 17 00:00:00 2001 From: "Loukas Wets (lowe)" Date: Tue, 9 May 2023 07:31:33 +0000 Subject: [PATCH] [FIX] pos_loyalty: stop crashing when downloading coupon In odoo/odoo#120070 We refactor the pos to stop using the action service, but one call in override pos_loyalty was missed. This commits adapts that call to prenvent a crash. Part-of: odoo/odoo#118288 --- addons/pos_loyalty/static/src/js/PaymentScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_loyalty/static/src/js/PaymentScreen.js b/addons/pos_loyalty/static/src/js/PaymentScreen.js index f6b5b671c08..0801a0c72f0 100644 --- a/addons/pos_loyalty/static/src/js/PaymentScreen.js +++ b/addons/pos_loyalty/static/src/js/PaymentScreen.js @@ -157,7 +157,7 @@ patch(PaymentScreen.prototype, "pos_loyalty.PaymentScreen", { } if (payload.coupon_report) { for (const [actionId, active_ids] of Object.entries(payload.coupon_report)) { - await this.action.doAction(actionId, { additionalContext: { active_ids } }); + await this.report.download(actionId, active_ids); } } order.new_coupon_info = payload.new_coupon_info;