[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
This commit is contained in:
parent
8190775c11
commit
2c5035fe44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue