mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
@@ -203,8 +203,12 @@ class Py3oReport(models.TransientModel):
|
||||
""" This function to generate our py3o report
|
||||
"""
|
||||
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=".ods", prefix="p3o.report.tmp."
|
||||
suffix="." + filetype, prefix="p3o.report.tmp."
|
||||
)
|
||||
tmpl_data = self.get_template(model_instance)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user