|
@ -56,7 +56,7 @@ class ResPartner(orm.Model): |
|
|
# only assign a 'ref' if it is a customer or supplier and |
|
|
# only assign a 'ref' if it is a customer or supplier and |
|
|
# if it not a child object (such as a shipping/invoice address) |
|
|
# if it not a child object (such as a shipping/invoice address) |
|
|
if id: |
|
|
if id: |
|
|
vals = self.read(cr, uid, id, ['parent_id','customer','supplier'], context=context) |
|
|
|
|
|
|
|
|
vals = self.read(cr, uid, id, ['parent_id', 'customer', 'supplier'], context=context) |
|
|
return not vals.get('parent_id') and (vals.get('customer') or vals.get('supplier')) |
|
|
return not vals.get('parent_id') and (vals.get('customer') or vals.get('supplier')) |
|
|
|
|
|
|
|
|
_columns = { |
|
|
_columns = { |
|
|