[FIX] report_substitute: support for email
parent
3412db6c86
commit
c1e2921762
|
@ -57,6 +57,13 @@ class IrActionReport(models.Model):
|
|||
substitution_report.report_name, res_ids, data=data
|
||||
)
|
||||
|
||||
def _render_qweb_pdf(self, report_ref, res_ids=None, data=None):
|
||||
report = self._get_report(report_ref)
|
||||
substitution_report = report.get_substitution_report(res_ids)
|
||||
return super(IrActionReport, self)._render_qweb_pdf(
|
||||
substitution_report, res_ids=res_ids, data=data
|
||||
)
|
||||
|
||||
def report_action(self, docids, data=None, config=True):
|
||||
if docids:
|
||||
if isinstance(docids, models.Model):
|
||||
|
|
Loading…
Reference in New Issue