diff --git a/trytond/trytond/report/report.py b/trytond/trytond/report/report.py index ca7cd3ae4b..136aa76ae0 100644 --- a/trytond/trytond/report/report.py +++ b/trytond/trytond/report/report.py @@ -392,7 +392,7 @@ class Report(URLMixin, PoolBase): loader = relatorio.reporting.MIMETemplateLoader() klass = loader.factories[loader.get_type(mimetype)] template = klass(BytesIO(report.report_content)) - template = report.set_template_cached(template) + report.set_template_cached(template) translate = cls._callback_loader(report, template) if translate: report_context = report_context.copy()