Skip to content

Commit 64dad6d

Browse files
committed
Merge PR OCA#930 into 16.0
Signed-off-by HviorForgeFlow
2 parents 279d873 + ea851cd commit 64dad6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

report_qweb_signer/models/ir_actions_report.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ def _normalize_filepath(path):
3434
class IrActionsReport(models.Model):
3535
_inherit = "ir.actions.report"
3636

37+
def _is_report_type_signable(self):
38+
self.ensure_one()
39+
return self.report_type == "qweb-pdf"
40+
3741
def _certificate_get(self, report, res_ids):
3842
"""Obtain the proper certificate for the report and the conditions."""
39-
if report.report_type != "qweb-pdf":
43+
if not report._is_report_type_signable():
4044
return False
4145
company_id = self.env.company.id
4246
if res_ids:

0 commit comments

Comments
 (0)