[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
This commit is contained in:
Loukas Wets (lowe)
2023-05-11 18:25:00 +02:00
parent 4b3d47b6a5
commit aa5ba2a101
@@ -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;