I want to show an image on a product form using an URL. How can this be done?
Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to show an image on a product form using an URL. How can this be done?
Thank you
Hello,
First you create an HTML computed field and a text field which will hold the url. Then you will compute the HTML field value as
let the field holding the url be image_url
let the computed html field be image_display
image_display = fields.HTML(copute="display_image")
@api.depends('image_url')
def display_image(self):
for record in self:
record.image_display = "< ; img src='%s' width='100' > ;" % record.image_url
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.