Browse Source

[FIX] report_qweb_signer: reprint report crash

`render_qweb_pdf` must return a tuple of `(content, 'pdf')`
12.0
david 4 years ago
parent
commit
64fd92ec43
  1. 2
      report_qweb_signer/models/ir_actions_report.py

2
report_qweb_signer/models/ir_actions_report.py

@ -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:

Loading…
Cancel
Save