[FIX] report_webkit: Wrong Report template file path throws 'Coercing to Unicode' error : (Maintenance Case : 583490)
bzr revid: rgo@tinyerp.com-20130101095810-7cbw337ul443q66g
This commit is contained in:
@@ -220,7 +220,7 @@ class WebKitParser(report_sxw):
|
||||
|
||||
if report_xml.report_file :
|
||||
path = addons.get_module_resource(*report_xml.report_file.split(os.path.sep))
|
||||
if os.path.exists(path) :
|
||||
if path and os.path.exists(path) :
|
||||
template = file(path).read()
|
||||
if not template and report_xml.report_webkit_data :
|
||||
template = report_xml.report_webkit_data
|
||||
|
||||
Reference in New Issue
Block a user