[FIX] report: make sure we can use an image path starting with the name of some module,

irrespective of the different addons paths.

lp bug: https://launchpad.net/bugs/781967 fixed

bzr revid: vmt@openerp.com-20110915140229-4d43wtbwzxr7s74i
This commit is contained in:
Vo Minh Thu
2011-09-15 16:02:29 +02:00
parent 6acb68343f
commit 1ec4c693d9
+1
View File
@@ -233,6 +233,7 @@ class report_rml(report_int):
def _get_path(self):
ret = []
ret.append(self.tmpl.replace(os.path.sep, '/').rsplit('/',1)[0]) # Same dir as the report rml
ret.append('addons')
ret.append(tools.config['root_path'])
return ret