[IMP] check for template data, not for the id

pull/347/head
Holger Brunn 2018-04-16 16:54:45 +02:00 committed by Laurent Mignon (ACSONE)
parent 9ed8257f31
commit d4707c5313
1 changed files with 1 additions and 1 deletions

View File

@ -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