mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_qweb_signer: Handle multi-company correctly
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user