[IMP] report_webkit: remove backward compatibility for report path names

bzr revid: mat@openerp.com-20130605100237-dva80nwzlsl8iotg
This commit is contained in:
Martin Trigaux
2013-06-05 12:02:37 +02:00
parent ccb38117ee
commit d6383b2a51
+1 -3
View File
@@ -280,9 +280,7 @@ class WebKitParser(report_sxw):
template = False
if report_xml.report_file :
# backward-compatible if path in Windows format
report_path = report_xml.report_file.replace("\\", "/")
path = get_module_resource(*report_path.split('/'))
path = get_module_resource(*report_xml.report_file.split('/'))
if path and os.path.exists(path) :
template = file(path).read()
if not template and report_xml.report_webkit_data :