From 1ec4c693d9897682c74bf9dd7313cff23edc71b6 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Thu, 15 Sep 2011 16:02:29 +0200 Subject: [PATCH] [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 --- openerp/report/interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/report/interface.py b/openerp/report/interface.py index 178c015ba34..edd70a911f0 100644 --- a/openerp/report/interface.py +++ b/openerp/report/interface.py @@ -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