[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:
parent
5542fcfb58
commit
8f6e543d70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue