[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:
parent
5265ceeffc
commit
e3725cb3a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue