From 9186fb8144f7c214dbd230f677231a28bdcf353e Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Sat, 30 Oct 2010 02:09:37 +0530 Subject: [PATCH] [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 --- bin/osv/expression.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/osv/expression.py b/bin/osv/expression.py index 26ac7ec4faa..cb1280c8e3b 100644 --- a/bin/osv/expression.py +++ b/bin/osv/expression.py @@ -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