base_report_to_printer: fix translation-positional-used

This commit is contained in:
Sébastien Alix
2022-12-15 09:12:12 +01:00
committed by John Herholz
parent fb725207aa
commit f615f79c20

View File

@@ -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
]
)