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