[FIX] Search on property field should not crash,it should go for fnct_search() instea...
authorJay (OpenERP) <jvo@tinyerp.com>
Fri, 29 Oct 2010 20:28:12 +0000 (01:58 +0530)
committerJay (OpenERP) <jvo@tinyerp.com>
Fri, 29 Oct 2010 20:28:12 +0000 (01:58 +0530)
lp bug: https://launchpad.net/bugs/634607 fixed

bzr revid: jvo@tinyerp.com-20101029202812-2wsxpx91c38e3z8f

bin/osv/expression.py

index a49a14b..718492d 100644 (file)
@@ -148,7 +148,8 @@ class expression(object):
                     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):