[MERGE] report: make the report 'header' flag effective

bzr revid: odo@openerp.com-20110113135813-g31b7x1tb6297okn
This commit is contained in:
Bhumika Shrimali (OpenERP) 2011-01-13 14:58:13 +01:00 committed by Olivier Dony
commit 8634d6057a
1 changed files with 2 additions and 1 deletions

View File

@ -412,7 +412,8 @@ class report_sxw(report_rml, preprocess.report):
report_xml = a(title=title, report_type=report_type, report_rml_content=rml, name=title, attachment=False, header=self.header)
finally:
report_file.close()
report_xml.header = self.header
if report_xml.header:
report_xml.header = self.header
report_type = report_xml.report_type
if report_type in ['sxw','odt']:
fnct = self.create_source_odt