From 849d8f1b9e71eb05a8a53877181ff1954df28176 Mon Sep 17 00:00:00 2001 From: "Omar (Comunitea)" Date: Fri, 18 Feb 2022 18:47:46 +0100 Subject: [PATCH] [FIX] report_qweb_signer: Handle multi-company correctly --- report_qweb_signer/models/ir_actions_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_qweb_signer/models/ir_actions_report.py b/report_qweb_signer/models/ir_actions_report.py index ee0dd7c35..1f87d0a70 100644 --- a/report_qweb_signer/models/ir_actions_report.py +++ b/report_qweb_signer/models/ir_actions_report.py @@ -38,7 +38,7 @@ class IrActionsReport(models.Model): """Obtain the proper certificate for the report and the conditions.""" if self.report_type != "qweb-pdf": return False - company_id = self.env.user.company_id.id + company_id = self.env.company.id if res_ids: obj = self.env[self.model].browse(res_ids[0]) if "company_id" in obj: