[FIX] fields.property: set the m2o fields as False instead of browse_null.

bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
This commit is contained in:
Vo Minh Thu 2011-07-11 16:25:03 +02:00
parent 5265ceeffc
commit e3725cb3a6
1 changed files with 2 additions and 2 deletions

View File

@ -1298,8 +1298,8 @@ class property(function):
# object depends on access right of source document,
# not target, so user may not have access) in order to avoid
# pointing on an unexisting record.
if res[id][prop_name] and property_destination_obj:
if obj.pool.get(property_destination_obj).exists(cr, 1, res[id][prop_name].id):
if property_destination_obj:
if res[id][prop_name] and obj.pool.get(property_destination_obj).exists(cr, 1, res[id][prop_name].id):
name_get_list_ids.append(res[id][prop_name].id)
else:
res[id][prop_name] = False