From cf60e3fa6e2000e70512b2f9a70e62f39cb48329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Sep 2020 18:38:41 +0200 Subject: [PATCH] Remove trailing dash on report name without record name issue9509 --- trytond/report/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/report/report.py b/trytond/report/report.py index 35e112b263..a0a47b1be2 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -178,7 +178,7 @@ class Report(URLMixin, PoolBase): suffix = '-'.join(r.rec_name for r in records[:5]) if len(records) > 5: suffix += '__' + str(len(records[5:])) - report_name = '%s-%s' % (action_report.name, suffix) + report_name = '-'.join(filter(None, [action_report.name, suffix])) return (oext, content, action_report.direct_print, report_name) @classmethod