[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:
Laurent Mignon (ACSONE)
2017-02-23 10:09:38 +01:00
committed by Elmeri Niemelä
parent 3b00271ebb
commit d29a3b3a8d
2 changed files with 30 additions and 1 deletions

View File

@@ -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(