mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] Use safe_eval wrapped time module. Fix deprecation warnings.
Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
This commit is contained in:
@@ -279,7 +279,7 @@ class Py3oReport(models.TransientModel):
|
||||
self.ensure_one()
|
||||
attachment = existing_reports_attachment.get(model_instance.id)
|
||||
if attachment and self.ir_actions_report_id.attachment_use:
|
||||
content = base64.decodestring(attachment.datas)
|
||||
content = base64.b64decode(attachment.datas)
|
||||
report_file = tempfile.mktemp("." + self.ir_actions_report_id.py3o_filetype)
|
||||
with open(report_file, "wb") as f:
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user