← Back to team overview

openerp-community team mailing list archive

Re: Image store problem in Odoo

 

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...
-------------------------------------------------------------------------

References