[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user