[FIX] base, res_company: added a missing context when calling write(), apparently needed for OPW: 586824
bzr revid: qdp-launchpad@openerp.com-20130417092321-17vj33w2bp2bumo8
This commit is contained in:
commit
5734172c71
|
@ -97,7 +97,7 @@ class res_company(osv.osv):
|
|||
address_data = part_obj.address_get(cr, uid, [company.partner_id.id], adr_pref=['default'])
|
||||
address = address_data['default']
|
||||
if address:
|
||||
part_obj.write(cr, uid, [address], {name: value or False})
|
||||
part_obj.write(cr, uid, [address], {name: value or False}, context=context)
|
||||
else:
|
||||
part_obj.create(cr, uid, {name: value or False, 'parent_id': company.partner_id.id}, context=context)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue