[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.
This commit is contained in:
parent
d6fd96d0e9
commit
914b697ee9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue