details:   https://code.tryton.org/tryton/commit/28bdd462ee4e
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Wed Jan 28 10:39:07 2026 +0100
description:
        Replace extension separator by underscore in report name used as 
temporary file
        (grafted from 646d50f1e24e3070c5cfc7817e1a19ed8202c08d)
diffstat:

 trytond/trytond/report/report.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r f9f0dc35a071 -r 28bdd462ee4e trytond/trytond/report/report.py
--- a/trytond/trytond/report/report.py  Wed Jan 21 19:12:34 2026 +0100
+++ b/trytond/trytond/report/report.py  Wed Jan 28 10:39:07 2026 +0100
@@ -420,7 +420,8 @@
         directory = tempfile.mkdtemp(prefix='trytond_')
         input_extension = FORMAT2EXT.get(input_format, input_format)
         output_extension = FORMAT2EXT.get(output_format, output_format)
-        path = pathlib.Path(directory, report.report_name)
+        path = pathlib.Path(
+            directory, report.report_name.replace(os.extsep, '_'))
         input_path = path.with_suffix(os.extsep + input_extension)
         output_path = path.with_suffix(os.extsep + output_extension)
         mode = 'w+' if isinstance(data, str) else 'wb+'

Reply via email to