[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:
Yogesh (OpenERP) 2011-10-05 12:21:55 +05:30
parent 92b6181556
commit 4de6b85979
1 changed files with 3 additions and 3 deletions

View File

@ -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: