[ADD] access right for wizrard print attachment and fix trans format

This commit is contained in:
sonhd
2022-01-21 10:19:14 +07:00
committed by Sébastien Alix
parent 0eeb248238
commit dab6f34576
2 changed files with 23 additions and 8 deletions

View File

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