Odoo Help


Display uploaded image (attachment) in form view

on 5/9/13, 4:39 PM 3,387 views


When uploading or editing a document image with OpenERP document management system i can only see OpenERP's default attachment information : attachment name, content, owner, ....

I want to add a hidden field within the same form view (as fixed-size image viewer) so that it appears after uploading the image and the image will be displayed inside that field. Also, how can i zoom in/out the image.

I tried to use the datas field (from ir.attachment object) in document view (which inherit from the ir.attachment form view) with the property widget='image', but there is no satisfying result,

Any hints ...

Manish Bohra
On 8/22/17, 12:57 AM

i have same problem you get any solution ??


You will have to either build a separate module that will do this for you or you will have to add JavaScript that will handle showing of image in popup.

We are currently trying something in similar line at present.

After we manage to achieve this I will share the same here.


Pascal Tremblay
on 1/6/15, 6:26 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 5/9/13, 4:39 PM
Seen: 3387 times
Last updated: 8/22/17, 12:57 AM