[FIX] Search on property field should not crash,it should go for fnct_search() instead (normal fields.function flow)
lp bug: https://launchpad.net/bugs/634607 fixed bzr revid: jvo@tinyerp.com-20101029203937-ecpovii0zfpwgsdw
This commit is contained in:
@@ -149,7 +149,9 @@ class expression(object):
|
||||
right = field_obj.search(cr, uid, [(fargs[1], operator, right)], context=context)
|
||||
right1 = table.search(cr, uid, [(fargs[0],'in', right)], context=context)
|
||||
self.__exp[i] = ('id', 'in', right1)
|
||||
continue
|
||||
|
||||
if not isinstance(field,fields.property):
|
||||
continue
|
||||
|
||||
if field._properties and ((not field.store) or field._fnct_search):
|
||||
# this is a function field
|
||||
|
||||
Reference in New Issue
Block a user