odoo/openerp/addons/base/res
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
..
__init__.py [FIX] font: cleaning and better default data 2013-10-14 14:38:15 +02:00
ir_property.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
ir_property_view.xml [IMP] menuitems cleanups 2014-06-28 17:32:01 +02:00
res.country.state.csv [IMP] Technical menu reorg, remove depreacted requests. 2013-10-06 13:26:08 +02:00
res_bank.py [FIX] models: display_name and name_get mismatch 2014-07-25 13:58:59 +02:00
res_bank_view.xml [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
res_company.py [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
res_company_logo.png [IMP] directory cleanups, moved historical cruft into history 2011-09-26 02:54:44 +02:00
res_company_view.xml [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
res_config.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
res_config.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
res_country.py [IMP] automatic fiscal positions for simple cases 2014-06-30 02:12:41 +02:00
res_country_data.xml [IMP] automatic fiscal positions for simple cases 2014-06-30 02:12:41 +02:00
res_country_view.xml [IMP] automatic fiscal positions for simple cases 2014-06-30 02:12:41 +02:00
res_currency.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
res_currency_data.xml [IMP] l10n_ro: Update Romanian Localization 2014-07-01 00:45:43 +02:00
res_currency_view.xml Fixes 2014-07-02 18:18:29 +02:00
res_font.py [FIX] res.font: re-introduce substitution for builtin PDF fonts 2014-04-07 14:10:15 +02:00
res_lang.py [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
res_lang_view.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
res_partner.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
res_partner_data.xml [IMP]: base: Improved bank name and bank account number 2012-07-25 12:25:43 +05:30
res_partner_demo.xml [FIX] a bunch of incomplete website URLs 2014-05-13 10:49:42 +02:00
res_partner_demo.yml [IMP]Set email address. 2013-11-11 17:57:48 +05:30
res_partner_image_demo.xml [IMP] Backport one feature from website: this feature allows to specify a file 2014-01-09 16:43:38 +01:00
res_partner_report.xml [REM] res.config and res.users cleanups. 2013-10-06 16:40:20 +02:00
res_partner_report_address.xml [REM] res.config and res.users cleanups. 2013-10-06 16:40:20 +02:00
res_partner_report_address.xsl [MERGE] forward port of latest saas-2 until rev 4996 dle@openerp.com-20131218123130-vlejjv7r2klkzoj0 2013-12-18 17:00:41 +01:00
res_partner_view.xml [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
res_request.py [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
res_request_view.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
res_security.xml [IMP] remove useless table/column creations in base.sql. Let the ORM do it job. 2014-04-25 18:28:28 +02:00
res_users.py [REF] OpenERP --> Odoo in various UI texts 2014-07-18 13:45:41 +02:00
res_users_view.xml Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00