[FIX] report_py3o: wrong extension for .odt files in zip
parent
60636fe4c2
commit
ad58dab5e2
|
@ -203,8 +203,10 @@ class Py3oReport(models.TransientModel):
|
||||||
""" This function to generate our py3o report
|
""" This function to generate our py3o report
|
||||||
"""
|
"""
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
action_report = self.ir_actions_report_id
|
||||||
|
filetype = action_report.py3o_filetype
|
||||||
result_fd, result_path = tempfile.mkstemp(
|
result_fd, result_path = tempfile.mkstemp(
|
||||||
suffix=".ods", prefix="p3o.report.tmp."
|
suffix="." + filetype, prefix="p3o.report.tmp."
|
||||||
)
|
)
|
||||||
tmpl_data = self.get_template(model_instance)
|
tmpl_data = self.get_template(model_instance)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue