mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_py3o: fix exception when report must be saved as attachement
The mehtod must be called with a list of ids not with a list of browse records
This commit is contained in:
committed by
Elmeri Niemelä
parent
3b00271ebb
commit
d29a3b3a8d
@@ -321,7 +321,7 @@ class Py3oReport(models.TransientModel):
|
||||
model_instances = self.env[self.ir_actions_report_xml_id.model].browse(
|
||||
res_ids)
|
||||
save_in_attachment = self._check_attachment_use(
|
||||
model_instances, self.ir_actions_report_xml_id) or {}
|
||||
res_ids, self.ir_actions_report_xml_id) or {}
|
||||
reports_path = []
|
||||
for model_instance in model_instances:
|
||||
reports_path.append(
|
||||
|
||||
Reference in New Issue
Block a user