跳至内容
菜单
此问题已终结
6 回复
6934 查看

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?

形象
丢弃

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

编写者 最佳答案

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.

形象
丢弃

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?

编写者

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

相关帖文 回复 查看 活动
1
7月 25
1990
3
4月 25
4700
5
11月 23
43019
3
9月 23
9484
1
9月 22
3756