[FIX] fix problem of poperty filed. if property field have a default value then check the id.
bzr revid: ysa@tinyerp.com-20111005065155-nfwersyv05ddjq40
This commit is contained in:
parent
92b6181556
commit
4de6b85979
|
@ -1216,7 +1216,7 @@ class property(function):
|
|||
default_val = self._get_default(obj, cr, uid, prop_name, context)
|
||||
|
||||
property_create = False
|
||||
if hasattr(default_val, '_id'):
|
||||
if hasattr(default_val, '_id') and default_val:
|
||||
if default_val._id != id_val:
|
||||
property_create = True
|
||||
elif id_val != default_val:
|
||||
|
|
Loading…
Reference in New Issue