From 2c5035fe444113d6b13046478accb10f209112cd Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 23 Dec 2010 16:02:53 +0100 Subject: [PATCH] [FIX] orm: function/related fields with store != None should always use db-based search, regardless of fnct_search This reverts commit jvo@tinyerp.com-20100202150454-x9kne83yzkjciidw (1950) from v5 and it port to v6 with commit jvo@tinyerp.com-20100202150454-x9kne83yzkjciidw (1844.4.90) lp bug: https://launchpad.net/bugs/693339 fixed bzr revid: odo@openerp.com-20101223150253-zumk5entx9heb8q0 --- bin/osv/expression.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/osv/expression.py b/bin/osv/expression.py index 3281fd29f7c..dddd11af569 100644 --- a/bin/osv/expression.py +++ b/bin/osv/expression.py @@ -153,8 +153,8 @@ class expression(object): if not isinstance(field,fields.property): continue - if field._properties and ((not field.store) or field._fnct_search): - # this is a function field + if field._properties and not field.store: + # this is a function field that is not stored if not field._fnct_search: # the function field doesn't provide a search function and doesn't store # values in the database, so we must ignore it : we generate a dummy leaf