[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:
Jay (OpenERP)
2010-10-30 02:09:37 +05:30
parent 9040e90050
commit 9186fb8144
+3 -1
View File
@@ -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