odoo/openerp
Martin Trigaux f138aa2608 [FIX] models: display_name and name_get mismatch
- display_name uses name_get and not the other way around:
name_get should not call _compute_display_name, _compute_display_name should call name_get.
The previous behaviour was not backward-compatible with the old api.
All the models redefining name_get would have 2 different behaviors between name_get and display_name.

- Do not set an inverse function to display_name:
In most cases, writing on display_name writes on _rec_name (if any, not mandatory).
If the display_name computation is redefined, we need to redefine as well the inverse method to avoid unexpected behaviour
This required to also modify tests in base_import as readonly fields are avoided.

- Remove search method on display_name:
For the same reason as for the first point, it could be good that searching on display_name use name_search (and not the other way around).
However doing this would be very inefficiant (need to do the search, without limit, extract the ids of the name_get result just to generate
a subdomain ('id', 'in', [...]). As in most cases it would anyway mean to search on the _rec_name it's better to directly do so.

- Changing label to avoid mismatch:
In view displaying the list of fields or when a match is made on the label of a field (e.g. when importing csv file,
matching is made on both label and technical name), the fact that display_name field has '
Calling it 'Display Name' will avoid most errors.

- remove display_name definition from website_forum_doc,ir_model:
These fields are doing the same thing as the display_name of the new api, we can remove them.
We need to keep the one for res.partner as it's a stored field.
2014-07-25 13:58:59 +02:00
..
addons [FIX] models: display_name and name_get mismatch 2014-07-25 13:58:59 +02:00
cli [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
conf [MERGE] openerp.pooler is deprecated. 2013-03-27 17:40:45 +01:00
modules [REM] asynchronous database creation method 2014-07-15 12:26:55 +02:00
osv [MERGE] Fwd-port saas-4 up to e31fd6a 2014-07-11 12:00:42 +02:00
report [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
service Merge pull request #1169 from xmo-odoo/8.0-remove-async-db-create-xmo 2014-07-16 10:29:21 +02:00
tests [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
tools [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
workflow [MERGE] new v8 api by rco 2014-07-06 17:05:41 +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] unsafe listification of weakref in Python < 2.7.4 2014-07-07 13:51:53 +02:00
exceptions.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
fields.py [FIX] fields: do not revalidate field values unless they are being modified 2014-07-23 12:30:24 +02:00
http.py [FIX] data-dir management 2014-07-07 15:49:24 +02:00
import_xml.rng [MERGE] Replace inherit_option_id by a selection field (PR #229) 2014-05-27 17:57:33 +02:00
loglevels.py [REF] logging: removed pseudo log-level TEST. 2013-03-26 16:58:44 +01:00
models.py [FIX] models: display_name and name_get mismatch 2014-07-25 13:58:59 +02:00
netsvc.py [IMP] module loading and tests profiling 2014-06-29 18:58:15 +02: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 [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
sql_db.py [IMP] test display sql query counter 2014-07-01 21:57:55 +02:00