base_report_to_printer: fix translation-positional-used

This commit is contained in:
Sébastien Alix
2022-12-15 09:12:12 +01:00
parent c535f0fc74
commit 82aecdc4ea

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