mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] check for template data, not for the id
This commit is contained in:
committed by
Elmeri Niemelä
parent
a89aa2a2f9
commit
cb40a8e9ff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user