Skip to content

Commit

Permalink
[FIX] report_substitute: support for email
Browse files Browse the repository at this point in the history
  • Loading branch information
SodexisTeam authored and atchuthan committed Oct 20, 2023
1 parent 7b7a04f commit 0f8c70c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions report_substitute/models/ir_actions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def _render(self, report_ref, res_ids, data=None):
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):
Expand Down

0 comments on commit 0f8c70c

Please sign in to comment.