[FIX] report_qweb_encrypt: the case without res_ids

pull/681/head
Stefan Rijnhart 2022-05-11 19:22:40 +02:00 committed by grzana12
parent 416bf02bcd
commit 12616ac1bd
1 changed files with 5 additions and 4 deletions

View File

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