This question has been flagged
1 Reply
2386 Views

How can i use  fields.related(),fields.property(), and _track in Odoo .

Avatar
Discard
Best Answer

1.'inventor_country_id': fields.related('inventor_id','country',readonly=True, type='many2one',relation='res.country', string='Country'),

i used this when i had to send data from function to the view page. i set a related field and returned the value in the field from function and displayed in the view


3.track_visibility='onchange' this will track the changes happening to the field in the oe_chatter fieds

Avatar
Discard