[FIX] report_qweb_signer: reprint report crash

`render_qweb_pdf` must return a tuple of `(content, 'pdf')`
This commit is contained in:
david
2020-06-16 07:28:26 +02:00
committed by Omar (Comunitea)
parent 456e006967
commit b7cd36d1a7

View File

@@ -143,7 +143,7 @@ class IrActionsReport(models.Model):
"The signed PDF document '%s/%s' was loaded from the "
"database", self.report_name, res_ids,
)
return signed_content
return signed_content, 'pdf'
content, ext = super(IrActionsReport, self).render_qweb_pdf(res_ids,
data)
if certificate: