How To Display Image With URL in Odoo

Usually the image in odoo is saved as binary, but we can also use URL to display image. The popular way is using CDN to save image (or other binary attachment) and display the image with that CDN URL.

Logo Odoo

But how if we can’t use CDN? Do we have alternate method to display image with URL?

The way is use default route /web/content/<string:model>/<int:id>/<string:field> from Odoo. So, just try to open in your browser yourlocalhost:port/web/content/product.product/1/image_1920.

Thats it! So easy.

Thank you for reading, see you on next tutorial.

Read also: How To Add Images or Barcodes in Odoo Report