From 5dcf2633b5d3a907d31501a75da225e618010216 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Mon, 5 Jul 2021 12:37:56 +0000 Subject: [PATCH] [FIX] product: fix the pricelist report traceback Currently, if we print the pricelist report after refresh, the traceback will occur. It has been fixed. closes odoo/odoo#79968 Task-id: 2584806 X-original-commit: a4c2f01a8e94e7361b25862758c1a20abad6c7aa Signed-off-by: Victor Feyens (vfe) --- addons/product/static/src/js/product_pricelist_report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/static/src/js/product_pricelist_report.js b/addons/product/static/src/js/product_pricelist_report.js index fbe8eb2134a..5c1d35ac8bb 100644 --- a/addons/product/static/src/js/product_pricelist_report.js +++ b/addons/product/static/src/js/product_pricelist_report.js @@ -180,7 +180,7 @@ var GeneratePriceList = AbstractAction.extend(StandaloneFieldManagerMixin, { _prepareActionReportParams: function () { return { active_model: this.context.active_model, - active_ids: this.context.active_ids, + active_ids: this.context.active_ids || '', is_visible_title: this.context.is_visible_title || '', pricelist_id: this.context.pricelist_id || '', quantities: this.context.quantities || [1],