mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] report_qweb_signer: keep env company if company is not defined
This commit is contained in:
@@ -43,7 +43,7 @@ class IrActionsReport(models.Model):
|
||||
if res_ids:
|
||||
obj = self.env[self.model].browse(res_ids[0])
|
||||
if "company_id" in obj:
|
||||
company_id = obj.company_id.id
|
||||
company_id = obj.company_id.id or company_id
|
||||
certificates = self.env["report.certificate"].search(
|
||||
[("company_id", "=", company_id), ("model_id", "=", self.model)]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user