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 the image (or other binary attachment) and display the image with that CDN URL.

Odoo Logo

But how if we can’t use CDN? Do we have an alternate method to display the 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.

That’s it! So easy.

Thank you for reading, see you on the next tutorial.

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

Comments

1 thought on “How To Display Image With URL in Odoo”

  1. Pingback: How To Add Images or Barcodes in Odoo Report - Cak Juice

Comments are closed.