mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
committed by
Elmeri Niemelä
parent
ac1c3572e8
commit
7f6c8129e5
@@ -295,7 +295,11 @@ class Py3oReport(models.TransientModel):
|
||||
'loaded_documents'].get(model_instance.id):
|
||||
d = save_in_attachment[
|
||||
'loaded_documents'].get(model_instance.id)
|
||||
return d, self.ir_actions_report_xml_id.py3o_filetype
|
||||
report_file = tempfile.mktemp(
|
||||
"." + self.ir_actions_report_xml_id.py3o_filetype)
|
||||
with open(report_file, "wb") as f:
|
||||
f.write(d)
|
||||
return report_file
|
||||
return self._create_single_report(
|
||||
model_instance, data, save_in_attachment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user