odoo/openerp
Raphael Collet 5ec8596f67 [FIX] fields: fix `_column.new()` by relying on `to_field_args()`
The implementation was based on the ill-defined method `same_parameters()` that
compares arguments based on a heuristic.  Instead, we now create a new column
and check whether it is equivalent to `self` by comparing the arguments
returned by `to_field_args()`.  If that is the case, `self` is reused instead
of the new column.

The code refactoring also fixes the column reuse which was broken by the
introduction of the parameter `compute` in commit 9333c62.  Indeed, with that
parameter, `same_parameters()` always returned False, since old-api columns do
not have that parameter by default.  The parameter has been renamed to
`_computed_field`, and is no longer passed for creating columns.
2015-02-23 15:50:09 +01:00
..
addons [FIX] models: in onchange, false changes where detected in many2many fields 2015-02-21 11:29:13 +01:00
cli [IMP] let scaffold render files ending by .rst and .html 2015-01-19 14:25:36 +01:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [FIX] mail: prevent sending mail during registry loading 2015-01-28 16:17:43 +01:00
osv [FIX] fields: fix `_column.new()` by relying on `to_field_args()` 2015-02-23 15:50:09 +01:00
report [MERGE] forward port of branch saas-3 up to b3f3daf 2015-01-23 13:28:17 +01:00
service [FIX] dbmanager: backup allow pg_dump custom dump to be larger than diskspace 2015-01-19 02:42:34 +01:00
tests [FIX] test phantomjs discard stderr 2015-01-09 01:21:42 +01:00
tools [FIX] translate: possibility to disable translation of view nodes 2015-02-20 17:22:39 +01:00
workflow [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR) 2014-08-05 12:26:28 +02:00
PKG-INFO [REM] netrpc: KILL EVERYBODY 2013-02-21 13:18:25 +01:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
api.py [FIX] api: environment recomputation 2015-02-12 14:57:31 +01:00
exceptions.py [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
fields.py [FIX] fields: fix `_column.new()` by relying on `to_field_args()` 2015-02-23 15:50:09 +01:00
http.py [IMP] http: don't warn when using HTTPException results 2015-01-29 16:15:36 +01:00
import_xml.rng [MERGE] ir-ui-view split active and show_customize 2014-08-31 16:56:44 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] models: in onchange, false changes where detected in many2many fields 2015-02-21 11:29:13 +01:00
netsvc.py [FIX] logging: dont use color in windows cmd 2015-01-09 01:45:41 +01:00
pooler.py [IMP] registry: avoid every direct access registry.db, and rename attribute as registry._db 2014-04-09 15:35:15 +02:00
release.py [REL] Odoo 8.0 2014-09-18 12:11:18 +02:00
sql_db.py [MERGE] forward port of branch saas-3 up to 30674c3 2014-12-23 14:03:38 +01:00