[FIX] fields: make field.store=False on old-style function fields
authorRaphael Collet <rco@openerp.com>
Thu, 30 Oct 2014 10:00:10 +0000 (11:00 +0100)
committerRaphael Collet <rco@openerp.com>
Thu, 30 Oct 2014 12:29:21 +0000 (13:29 +0100)
commit5eb6e5815666faf1bb7a191e451b4c8a907323f2
treee6bc0dfaae49f8f8c0736e130cbfb17e0afb990f
parent7e454beff114593a215e35ba915012544fd2f77c
[FIX] fields: make field.store=False on old-style function fields

Clarify the semantics of field attributes:
 - field.store is True when the field is actually stored in the database;
 - field.column is the column corresponding to field or None.

The various field definitions correspond to:
 - new-style stored field: field.store and field.column
 - new-style non-stored field: not field.store and not field.column
 - old-style regular field: field.store and field.column
 - old-style function field: not field.store and field.column
openerp/fields.py
openerp/models.py
openerp/osv/expression.py
openerp/osv/fields.py