I want to know the something about related fields, how it can be helped, and for which kind of scenario I should use fields.related, if anybody can provide small example for real use of fields.related it would be great
Thanks in advance.......
I want to know the something about related fields, how it can be helped, and for which kind of scenario I should use fields.related, if anybody can provide small example for real use of fields.related it would be great
Thanks in advance.......
It lets you pull a field from a related table. You can find more details in the developer book, and one example to look at is the order_partner_id
field of the sale_order_line
class. In version 5.14, that's at line 806 of addons/sale/sale.py
.
I often find that I want to display a field in a list, but it's on a parent record instead of the actual table that I'm listing.