From d4707c531337c05f311671c9052b4074e9c92e55 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 16 Apr 2018 16:54:45 +0200 Subject: [PATCH] [IMP] check for template data, not for the id --- report_py3o/models/py3o_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_py3o/models/py3o_report.py b/report_py3o/models/py3o_report.py index 451837d5..1e2866c3 100644 --- a/report_py3o/models/py3o_report.py +++ b/report_py3o/models/py3o_report.py @@ -175,7 +175,7 @@ class Py3oReport(models.TransientModel): """ self.ensure_one() report_xml = self.ir_actions_report_xml_id - if report_xml.py3o_template_id and report_xml.py3o_template_id.id: + if report_xml.py3o_template_id.py3o_template_data: # if a user gave a report template tmpl_data = b64decode( report_xml.py3o_template_id.py3o_template_data