diff --git a/addons/point_of_sale/static/src/js/Popups/ClosePosPopup.js b/addons/point_of_sale/static/src/js/Popups/ClosePosPopup.js index f1660e1c911..bfb8d07be21 100644 --- a/addons/point_of_sale/static/src/js/Popups/ClosePosPopup.js +++ b/addons/point_of_sale/static/src/js/Popups/ClosePosPopup.js @@ -93,7 +93,7 @@ export class ClosePosPopup extends AbstractAwaitablePopup { async downloadSalesReport() { await this.action.doAction("point_of_sale.sale_details_report", { additionalContext: { - active_ids: [this.env.pos.pos_session.id], + active_ids: [this.pos.globalState.pos_session.id], }, }); }