Skip to Content
Menu
This question has been flagged
2 Replies
623 Views

How to add product image in list view?

Avatar
Discard
Best Answer

Hi,

This module helps you to view the image in product's list view.

You can try like this:
https://apps.odoo.com/apps/modules/16.0/product_image_list_view/


Hope it helps

Avatar
Discard
Best Answer

Hello @arsh23


Hope you are doing well.


First you need to create list/tree view of respected model.

After that you can add product image in list view.

Please find code in comment. 

here options will be width and height of image:

first one size 70 is consider width and second one size 50 is width of image.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com 

Skype: kalpeshmaheshwari

Avatar
Discard

Please find Example here :-

Ex.

<field name="product_img" class="oe_avtar" widget="image" options='{"size": [70, 50]}'/>