mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
@@ -40,6 +40,8 @@ class IrActionsReport(models.Model):
|
|||||||
return False
|
return False
|
||||||
company_id = self.env.company.id
|
company_id = self.env.company.id
|
||||||
if res_ids:
|
if res_ids:
|
||||||
|
if isinstance(res_ids, int):
|
||||||
|
res_ids = [res_ids]
|
||||||
obj = self.env[self.model].browse(res_ids[0])
|
obj = self.env[self.model].browse(res_ids[0])
|
||||||
if "company_id" in obj:
|
if "company_id" in obj:
|
||||||
company_id = obj.company_id.id or company_id
|
company_id = obj.company_id.id or company_id
|
||||||
|
|||||||
@@ -7,3 +7,6 @@
|
|||||||
* David Vidal
|
* David Vidal
|
||||||
* Santi Argüeso <santi@comunitea.com>
|
* Santi Argüeso <santi@comunitea.com>
|
||||||
* Omar Castiñeira <omar@comunitea.com>
|
* Omar Castiñeira <omar@comunitea.com>
|
||||||
|
* `Punt Sistemes <https://www.puntsistemes.es>`_:
|
||||||
|
|
||||||
|
* Isaac Gallart <igallart@puntsistemes.es>
|
||||||
|
|||||||
Reference in New Issue
Block a user