Skip to content
Snippets Groups Projects
Commit 914b697e authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] report_webkit: re-enable test, disabled during new API developement

Requires an extra use_global_header to be added on
the report record, to mimic the super.create()
behavior, as super.create() is not called.
parent d6fd96d0
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ TODO:
"report/webkit_report_demo.xml",
],
'test': [
# "test/print.yml",
"test/print.yml",
],
'installable': True,
'auto_install': False,
......
......@@ -368,6 +368,9 @@ class WebKitParser(report_sxw):
report_xml = ir_obj.browse(cursor, uid, report_xml_ids[0], context=context)
else:
return super(WebKitParser, self).create(cursor, uid, ids, data, context)
setattr(report_xml, 'use_global_header', self.header if report_xml.header else False)
if report_xml.report_type != 'webkit':
return super(WebKitParser, self).create(cursor, uid, ids, data, context)
result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment