[FIX] fields.related with store attributue should follow DB search.
authorDukai Gabor <>
Thu, 23 Dec 2010 18:31:06 +0000 (00:01 +0530)
committerJay (OpenERP) <jvo@tinyerp.com>
Thu, 23 Dec 2010 18:31:06 +0000 (00:01 +0530)
lp bug: https://launchpad.net/bugs/693339 fixed

bzr revid: jvo@tinyerp.com-20101223183106-afi8ie4itq8q79po

bin/osv/expression.py

index 718492d..9303f35 100644 (file)
@@ -151,9 +151,9 @@ class expression(object):
                 if not isinstance(field,fields.property):
                     continue
 
-            if field._properties and ((not field.store) or field._fnct_search):
+            if field._properties and not field.store:
 
-                # this is a function field
+                # this is a function field which 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