Sorry Hans not Yannick,

if you are using a folder to store images you can overwrite product's img
method and return the correct path to the image.
Take a look at
https://github.com/odoo/odoo/blob/master/addons/website_sale/models/product.py#L197

then at your template call <img src="{{ img(product.id, field="something"
}} /> also you will need to add this method to values dict in main.py
controller.

Hope it helps,

Aristobulo


-- 
La experiencia es la más dura maestra;
primero pone la prueba, luego dá la explicación...
-------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp

Reply via email to