Merge PR #573 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-01-18 14:39:30 +00:00

View File

@@ -34,6 +34,8 @@ class IrActionsReport(models.Model):
document, ttype = super(IrActionsReport, self)._render_qweb_pdf(
res_ids=res_ids, data=data
)
if isinstance(res_ids, int):
res_ids = [res_ids]
password = self._get_pdf_password(res_ids[:1])
document = self._encrypt_pdf(document, password)
return document, ttype