[Fix] report: if header is false then not display header

bzr revid: sbh@tinyerp.com-20110110132832-z4ksl1osqpddbvpf
This commit is contained in:
Sbh (OpenERP) 2011-01-10 18:58:32 +05:30
parent 02ebf8fbb8
commit f6352985d4
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