New field type (fields.related)
New field type is added in trunk.
Example:
In tree view of partner you can see country and city of first partner's address.
Following fields are added in partner object.
'city':fields.related('address', 'city', type='char',string='City'),
'country':fields.related('address','country_id',type='many2one',relation='res.country',string='Country'),
Where address is the one2many field on partner object.
Example:
In tree view of partner you can see country and city of first partner's address.
Following fields are added in partner object.
'city':fields.related('address', 'city', type='char',string='City'),
'country':fields.related('address','country_id',type='many2one',relation='res.country',string='Country'),
Where address is the one2many field on partner object.
Comments