Odoo Help

0

Display uploaded image (attachment) in form view

By
Youssouf
on 5/9/13, 4:39 PM 2,597 views

Hi,

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

-1

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.

Interesting!!!!

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.

Register

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)

Stats

Asked: 5/9/13, 4:39 PM
Seen: 2597 times
Last updated: 3/16/15, 8:10 AM