odoo/openerp/addons/base
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
..
i18n [I18N] base: fix Hungarian translations 2014-07-07 14:36:55 +02:00
ir [FIX] models: display_name and name_get mismatch 2014-07-25 13:58:59 +02:00
module [FIX] ir.module.module: create module xml id also when auto-discovered 2014-07-23 14:42:04 +02:00
report [REF] OpenERP --> Odoo in various UI texts (2) 2014-07-18 14:59:38 +02:00
res [FIX] models: display_name and name_get mismatch 2014-07-25 13:58:59 +02:00
rng Add form@version in rng 2014-06-12 10:17:36 +02:00
security [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
static [IMP] replace OpenERP by Odoo in backend + change company default logo. 2014-05-30 17:30:36 +02:00
tests [REF] Odooification 2014-07-24 16:22:52 +02:00
workflow [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
__init__.py [FIX] nonsensical import? 2014-03-10 10:59:18 +01:00
__openerp__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
base.sql [IMP] remove useless table/column creations in base.sql. Let the ORM do it job. 2014-04-25 18:28:28 +02:00
base_data.xml [MERGE][IMP] Enable HTML in emails signature 2014-06-27 11:31:24 +02:00
base_demo.xml [FIX] base/account: auto install period's dates. Resolve: don't set country_id to res.partner 2014-01-17 14:17:33 +01:00
base_menu.xml [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00