From 1e7f626460b20476e10bc4b5ee9154fbd24830cb Mon Sep 17 00:00:00 2001 From: Kitti U Date: Thu, 29 Apr 2021 17:10:49 +0700 Subject: [PATCH] [14.0][FIX] stock_card_report, fix action access error --- stock_card_report/wizard/stock_card_report_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_card_report/wizard/stock_card_report_wizard.py b/stock_card_report/wizard/stock_card_report_wizard.py index efd55a6..b0639fe 100644 --- a/stock_card_report/wizard/stock_card_report_wizard.py +++ b/stock_card_report/wizard/stock_card_report_wizard.py @@ -27,7 +27,7 @@ class StockCardReportWizard(models.TransientModel): def button_export_html(self): self.ensure_one() action = self.env.ref("stock_card_report.action_report_stock_card_report_html") - vals = action.read()[0] + vals = action.sudo().read()[0] context = vals.get("context", {}) if context: context = safe_eval(context)