diff --git a/addons/report_webkit/__openerp__.py b/addons/report_webkit/__openerp__.py index 44c658d0d5a..b8557e7747e 100644 --- a/addons/report_webkit/__openerp__.py +++ b/addons/report_webkit/__openerp__.py @@ -94,7 +94,7 @@ TODO: "report/webkit_report_demo.xml", ], 'test': [ -# "test/print.yml", + "test/print.yml", ], 'installable': True, 'auto_install': False, diff --git a/addons/report_webkit/webkit_report.py b/addons/report_webkit/webkit_report.py index c576aa36fa8..5cb58ea276f 100644 --- a/addons/report_webkit/webkit_report.py +++ b/addons/report_webkit/webkit_report.py @@ -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)