İçereği Atla
Menü
Bu soru işaretlendi
6 Cevaplar
6950 Görünümler

I'm using the "web_tree_image" module in order to show images in sale order lines.

All works well until I save the record. When this happens, the image is not shown anymore. If I edit the record and click on the lines, images show.

Here's the code:


<field name="image" widget="image" height="50"/>


As anyone been able to show the images properly?

Avatar
Vazgeç

Sale Order Serial Numbers & Product Images | Auto Numbering & Custom Images in Reports in Odoo
This Odoo module automatically assigns serial numbers to sale order lines and displays product images in reports. If a serial number is manually set to a custom string (e.g., "A"), the next item resets numbering to 1. Additionally, if a product has no image, you can manually upload a custom image for the sale order line—without affecting the original product image.
https://apps.odoo.com/apps/modules/18.0/mh_display_serial_number_and_image

Üretici En İyi Yanıt

Thanks Niyas Raphy but the same thing happens.

I only get to see the images in edit mode - and only if I click on the lines.

I've tried this with an empty database so, there's no way some other module is interfering.

Avatar
Vazgeç

I have tested it in my db and it is working fine, i can see the image in edit mode and in the other mode

I have also tested "sale_product_image" in odoo 9 and its working fine. In which version you install "sale_product_image" module?

Üretici

Here's the problem:

In edit mode, the widget calls http://localhost:8071/web/image?model=sale.order.line&field=image&id=1

But, in "non edit" mode, it calls http://localhost:8071/web/binary/image?model=sale.order.line&field=image&id=1

In some servers, the "/web/binary/image" won't run, despite being declared in the "web" module.

I changed the ".js".

Thanks anyway for your help ;)

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 25
2017
3
Nis 25
4727
5
Kas 23
43054
3
Eyl 23
9507
1
Eyl 22
3776