details: https://code.tryton.org/tryton/commit/4fdab65b613a
branch: 7.6
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 ec24c54dbc81 -r 4fdab65b613a 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
@@ -427,7 +427,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+'