Skip to Content
Menu
This question has been flagged
6 Replies
6871 Views

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
Discard

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

Author Best Answer

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
Discard

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?

Author

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

Related Posts Replies Views Activity
1
Jul 25
1896
3
Apr 25
4511
5
Nov 23
42864
3
Sep 23
9409
1
Sep 22
3655