Guys, how should it look like if I would like to adapt fields.related
into new API ?
in old API it is like:
'product_image': fields.related('product_id', 'image_medium', type='binary', 'Product Image')
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Guys, how should it look like if I would like to adapt fields.related
into new API ?
in old API it is like:
'product_image': fields.related('product_id', 'image_medium', type='binary', 'Product Image')
Hi, In new API :-
product_image = fields.Binary(related='product_id.image_medium', string='Product Image')
Hope this help.
Thank you Baiju
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up