Hi
Please excuse me for asking such a basic question. I feel I should know this but can't figure it out.
The following "onchange" function receives the "partner_id" and uses it to extract the partner address details on the "Sales Order" screen.
Code:
onchange_partner_id(self, cr, uid, ids, part)
....
addr = self.pool.get('res.partner').address_get(cr, uid, [part], ['default'])
address_obj = self.pool.get('res.partner.address')
street = address_obj.get_street(cr, uid, addr['default'])
There are many examples of this where the fields are "many2one".
I however just want to access a simple boolean variable that is part of the res.partner object.
Code:
class res_partner(osv.osv):
_name = 'res.partner'
_inherit = 'res.partner'
_columns = {
'abc': fields.boolean('ABC'),
}
res_partner()
What is the simplest way to do that in the context of the onchange_partner_id function?
Any pointer would be greatly appreciated
Thanks
O.