[IMP] base/res: improve code
bzr revid: sbh@tinyerp.com-20120228085657-ahmf0jvjm6jjc35s
This commit is contained in:
parent
7b4386a653
commit
3b666cb89e
|
@ -244,7 +244,8 @@ class res_partner(osv.osv):
|
|||
parent_id=partner_id.parent_id.id
|
||||
if is_company == 'contact' and parent_id:
|
||||
update_ids= self.search(cr, uid, [('parent_id', '=', parent_id),('use_parent_address','=',True)], context=context)
|
||||
if parent_id not in update_ids: update_ids.append(parent_id)
|
||||
if parent_id not in update_ids:
|
||||
update_ids.append(parent_id)
|
||||
elif is_company == 'partner':
|
||||
update_ids= self.search(cr, uid, [('parent_id', '=', partner_id.id),('use_parent_address','=',True)], context=context)
|
||||
if update_ids:
|
||||
|
|
Loading…
Reference in New Issue