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 trisdoan
parent 8e7443f5cd
commit 6038cd44de

View File

@@ -45,7 +45,9 @@ class PrintAttachment(models.TransientModel):
"warning": _("Following attachments could not be printed:\n\n%s") "warning": _("Following attachments could not be printed:\n\n%s")
% "\n".join( % "\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 for err in errors
] ]
) )