mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_substitute: support for email
This commit is contained in:
committed by
Franco Leyes
parent
0f953051a2
commit
ea75f8383a
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user