Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
6 Odpowiedzi
6913 Widoki

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?

Awatar
Odrzuć

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

Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć

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?

Autor

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 ;)

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
1955
3
kwi 25
4666
5
lis 23
42970
3
wrz 23
9464
1
wrz 22
3732