Can someone explain to me something about related fields. For example -
If anybody can provide a small example for real use of fields.related I would appreciate it.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With