Skip to Content
Menu
This question has been flagged
1 Reply
2449 Views

Problem solved.

I was trying to use a _get_image function (which worked but I was unable to display image), so

I decided to use a field:  image = fields.Binary(related='product_id.image_medium', string='Image')  instead.

Simple but effective way to use same product image in any custom module.



Avatar
Discard
Best Answer

You define the image as attribute? like that: image = fields.Binary()

Avatar
Discard