[FIX] report_webkit: Wrong Report template file path throws 'Coercing to Unicode' error : (Maintenance Case : 583490)

cf.  http://bazaar.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-583490-rgo/revision/8519

bzr revid: olivier.laurent@acsone.eu-20130325164313-ccnkn06x16ar32qz
This commit is contained in:
Olivier LAURENT 2013-03-25 17:43:13 +01:00
parent 5542fcfb58
commit 8f6e543d70
1 changed files with 1 additions and 1 deletions

View File

@ -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