views:

41

answers:

1

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.......

+1  A: 

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.

Don Kirkby
I was thinking the same, I've tried the example from developer book too, its great, in prior version I use to achieve this by function field - great to have related fields now - it works upto n level ! bingo !!! - Thanks
necromancer