Browse Source

Merge pull request #208 from hbrunn/10.0-report_py3o-template_data

[IMP] check for template data, not for the id
pull/211/head
Laurent Mignon (ACSONE) 7 years ago
committed by GitHub
parent
commit
3e9ad03dcc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      report_py3o/models/py3o_report.py

2
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

Loading…
Cancel
Save