Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
630 Vistas

How to add product image in list view?

Avatar
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar

Please find Example here :-

Ex.

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