diff --git a/base_report_to_printer/security/security.xml b/base_report_to_printer/security/security.xml index ebda2e8..8f68e12 100644 --- a/base_report_to_printer/security/security.xml +++ b/base_report_to_printer/security/security.xml @@ -125,6 +125,23 @@ Update printer wizard + + + + + + Print Attachment User + + + + + + + + + Print Attachment Line User + + diff --git a/base_report_to_printer/wizards/print_attachment_report.py b/base_report_to_printer/wizards/print_attachment_report.py index 2fd8ff2..b430fa5 100644 --- a/base_report_to_printer/wizards/print_attachment_report.py +++ b/base_report_to_printer/wizards/print_attachment_report.py @@ -42,14 +42,12 @@ class PrintAttachment(models.TransientModel): ) if errors: return { - "warning": _( - "Following attachments could not be printed:\n\n%s" - % "\n".join( - [ - _("%s (%s copies)") % (err.record_name, err.copies) - for err in errors - ] - ) + "warning": _("Following attachments could not be printed:\n\n%s") + % "\n".join( + [ + _("%s (%s copies)") % (err.record_name, err.copies) + for err in errors + ] ) }