Dheeraj Balodia
Dheeraj Balodia

Reputation: 252

How to preview images after uploading in Odoo V10?

There is ir.attachment model available for uploading URL and files but I want to upload images and that can be viewed on the uploading form UI-view.

Is there any way I can do it as I haven't found anything on this related to Odoo V10.

enter image description here

How can we solve this issue?

Upvotes: 1

Views: 1171

Answers (2)

Lakshminarayanan
Lakshminarayanan

Reputation: 320

odoo app available on odoo apps page please go throw this url may be it will help you [https://apps.odoo.com/apps/modules/category/Extra%20Tools/browse?search=image+preview]

Upvotes: 1

Manish Bohra
Manish Bohra

Reputation: 340

You can try this:

Add this code in your .py

attachment = fields.Many2many("ir.attachment", string="Attachment")

and .xml

<field name ="attachment" widget="many2many_binary"/>

I hope it works for you.

Upvotes: 1

Related Questions