Hello,

You are right addons_path add in file_open() in openerp/tools/misc.py but a 
there is a case like 
<image file="account/images/accounting-hover.png" width="80" height="80"/>

In _open_image method path = ['addons/sale/report', 
'/home/ysa-openerp/OpenERP/rdtools/server/trunk-bug-781967-ysa/openerp'] and 
image filename of report is addons path. in _open_image() p = 
'addons/sale/report' and filename='account/images/accounting-hover.png' then 
join this p to filename and then 
fullpath='addons/sale/report/account/images/accounting-hover.png'(it's wrong) 
and this fullpath pass in file_open() in openerp/tools/misc.py so crash the 
server b'coz this filepath is not available.
so don't need to join this filename('account/images/accounting-hover.png') with 
p('addons/sale/report').

I check the '/' in filename then don't join with p and if filename is root path 
or sub-directory then join this path.

Thanks,
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-781967-ysa/+merge/62079
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-bug-781967-ysa.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to