mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Reformatted using pre-commit
Signed-off-by: fazledyn-or <ataf@openrefactory.com>
This commit is contained in:
@@ -309,7 +309,9 @@ class Py3oReport(models.TransientModel):
|
||||
attachment = existing_reports_attachment.get(model_instance.id)
|
||||
if attachment and self.ir_actions_report_id.attachment_use:
|
||||
content = base64.b64decode(attachment.datas)
|
||||
fd, report_file = tempfile.mkstemp("." + self.ir_actions_report_id.py3o_filetype)
|
||||
fd, report_file = tempfile.mkstemp(
|
||||
"." + self.ir_actions_report_id.py3o_filetype
|
||||
)
|
||||
os.close(fd)
|
||||
with open(report_file, "wb") as f:
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user