[FIX] webkit: User friendly popup error message displayed while webkit report's path does not exist.

bzr revid: rch@tinyerp.com-20110614120803-k9ohpc3cehh9agz3
This commit is contained in:
rch-openerp
2011-06-14 17:38:03 +05:30
parent 6436bfacba
commit 40114b7eb9
+1 -1
View File
@@ -247,7 +247,7 @@ class WebKitParser(report_sxw):
if report_xml.report_file :
path = addons.get_module_resource(report_xml.report_file)
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