[FIX] base: make data argument optional
It was not always set (e.g. in the generate_email call of mail.template) and it executes methods like _render_qweb_html where data was already optional. closes odoo/odoo#103840 X-original-commit: ddb2bf9f9cb6ea3a4bbdc4fb68c7fbcb0e66aa43 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
@@ -888,7 +888,7 @@ class IrActionsReport(models.Model):
|
||||
return data
|
||||
|
||||
@api.model
|
||||
def _render(self, report_ref, res_ids, data):
|
||||
def _render(self, report_ref, res_ids, data=None):
|
||||
report = self._get_report(report_ref)
|
||||
report_type = report.report_type.lower().replace('-', '_')
|
||||
render_func = getattr(self, '_render_' + report_type, None)
|
||||
|
||||
Reference in New Issue
Block a user