This question has been flagged
6 Replies
5580 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
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 ;)