From f615f79c20ab2a46b59f8a330b2522789992d09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alix?= Date: Thu, 15 Dec 2022 09:12:12 +0100 Subject: [PATCH] base_report_to_printer: fix translation-positional-used --- base_report_to_printer/wizards/print_attachment_report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base_report_to_printer/wizards/print_attachment_report.py b/base_report_to_printer/wizards/print_attachment_report.py index 6ec2007..459df98 100644 --- a/base_report_to_printer/wizards/print_attachment_report.py +++ b/base_report_to_printer/wizards/print_attachment_report.py @@ -45,7 +45,9 @@ class PrintAttachment(models.TransientModel): "warning": _("Following attachments could not be printed:\n\n%s") % "\n".join( [ - _("%s (%s copies)") % (err.record_name, err.copies) + _("{name} ({copies} copies)").format( + name=err.record_name, copies=err.copies + ) for err in errors ] )