[MERGE] Forward porting of latest 7.0 bugfixes, up to rev. 9193
authorMartin Trigaux <mat@openerp.com>
Tue, 4 Jun 2013 11:00:41 +0000 (13:00 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 4 Jun 2013 11:00:41 +0000 (13:00 +0200)
bzr revid: mat@openerp.com-20130604110041-yemgrfsi02uboe8m

1  2 
addons/account/account_invoice_view.xml
addons/crm/crm_lead.py
addons/hr_holidays/hr_holidays_view.xml
addons/project/project.py
addons/report_webkit/webkit_report.py

Simple merge
Simple merge
@@@ -280,7 -219,9 +280,9 @@@ class WebKitParser(report_sxw)
          template =  False
  
          if report_xml.report_file :
-             path = get_module_resource(*report_xml.report_file.split(os.path.sep))
+             # backward-compatible if path in Windows format
+             report_path = report_xml.report_file.replace("\\", "/")
 -            path = addons.get_module_resource(*report_path.split('/'))
++            path = get_module_resource(*report_path.split('/'))
              if path and os.path.exists(path) :
                  template = file(path).read()
          if not template and report_xml.report_webkit_data :