|
|
@ -56,7 +56,7 @@ class ResPartner(orm.Model): |
|
|
|
# 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 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')) |
|
|
|
|
|
|
|
_columns = { |
|
|
|