details: https://code.tryton.org/tryton/commit/646d50f1e24e
branch: default
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
diffstat:
trytond/trytond/report/report.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 0e84ed4f4db8 -r 646d50f1e24e trytond/trytond/report/report.py
--- a/trytond/trytond/report/report.py Wed Jan 21 14:55:49 2026 +0100
+++ b/trytond/trytond/report/report.py Wed Jan 28 10:39:07 2026 +0100
@@ -429,7 +429,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+'