diff --git a/mail_template_multi_report/models/mail_template.py b/mail_template_multi_report/models/mail_template.py index 4719bccd..b978be09 100644 --- a/mail_template_multi_report/models/mail_template.py +++ b/mail_template_multi_report/models/mail_template.py @@ -47,7 +47,8 @@ class MailTemplate(models.Model): report_service = report.report_name if report.report_type in ['qweb-html', 'qweb-pdf']: - result, fmt = self.env['report'].get_pdf([rec.id], report_service), 'pdf' + result, fmt = self.env['report'].get_pdf( + [rec.id], report_service), 'pdf' else: result, fmt = odoo_report.render_report( self._cr, self._uid, [rec.id],