~clearcorp-drivers/openobject-server/5.0-ccorp

« back to all changes in this revision

Viewing changes to bin/osv/expression.py

  • Committer: Jay(OpenERP)
  • Author(s): Dukai Gabor
  • Date: 2010-12-23 18:31:06 UTC
  • Revision ID: jvo@tinyerp.com-20101223183106-afi8ie4itq8q79po
[FIX] fields.related with store attributue should follow DB search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
                if not isinstance(field,fields.property):
152
152
                    continue
153
153
 
154
 
            if field._properties and ((not field.store) or field._fnct_search):
 
154
            if field._properties and not field.store:
155
155
 
156
 
                # this is a function field
 
156
                # this is a function field which is not stored.
157
157
                if not field._fnct_search:
158
158
                    # the function field doesn't provide a search function and doesn't store
159
159
                    # values in the database, so we must ignore it : we generate a dummy leaf