mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Update py3o_report.py
[FIX] generate a single report with the right extension (if the extension is an OpenDocument type)
This commit is contained in:
committed by
Omar (Comunitea)
parent
43653ab88b
commit
2f0d8dd903
@@ -209,6 +209,8 @@ class Py3oReport(models.TransientModel):
|
||||
self.ensure_one()
|
||||
action_report = self.ir_actions_report_id
|
||||
filetype = action_report.py3o_filetype
|
||||
if filetype not in ("odt", "ods", "odp", "fodt", "fods", "fodp"):
|
||||
filetype = "ods"
|
||||
result_fd, result_path = tempfile.mkstemp(
|
||||
suffix="." + filetype, prefix="p3o.report.tmp."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user