[FIX] Fixed _get_by_id() method of fields.property

bzr revid: ach@tinyerp.com-20100921085549-lw3x6w4zbljscxic
This commit is contained in:
Anup (OpenERP) 2010-09-21 14:25:49 +05:30
parent 2dd50cdbf2
commit 50985408b6
1 changed files with 2 additions and 5 deletions

View File

@ -901,12 +901,9 @@ class property(function):
domain = [('fields_id.model', '=', obj._name), ('fields_id.name','in',prop_name)]
#domain = prop._get_domain(cr, uid, prop_name, obj._name, context)
if domain is not None:
if vids:
domain = [('res_id', 'in', vids)] + domain
return prop.search(cr, uid, domain, context=context)
else:
return []
return prop.search(cr, uid, domain, context=context)
# TODO: to rewrite more clean
def _fnct_write(self, obj, cr, uid, id, prop_name, id_val, obj_dest, context=None):