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
..
2014-07-25 13:58:59 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-16 11:58:22 +02:00
2014-07-06 17:05:41 +02:00
2014-07-16 11:58:22 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-04 11:07:23 +02:00
2014-07-18 13:45:41 +02:00
2014-07-08 15:32:38 +02:00
2014-07-07 11:23:06 +02:00
2014-07-18 13:45:41 +02:00
2014-06-25 17:13:43 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-25 17:13:43 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-25 13:58:59 +02:00
2014-06-12 09:09:59 +02:00
2014-07-18 14:59:38 +02:00
2014-07-18 13:45:41 +02:00
2014-06-30 02:12:41 +02:00
2014-07-14 12:23:44 +02:00
2014-07-16 09:43:33 +02:00
2014-07-18 13:45:41 +02:00
2014-05-09 11:27:50 +02:00
2014-07-18 13:45:41 +02:00
2014-07-23 16:58:00 +02:00
2014-07-22 19:13:13 +02:00
2014-07-22 19:13:13 +02:00
2014-07-08 17:33:00 +02:00
2014-07-08 17:33:00 +02:00
2014-07-18 13:45:41 +02:00
2014-06-12 09:09:59 +02:00
2014-06-25 17:13:43 +02:00
2014-07-23 16:58:00 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-10 22:49:53 +02:00
2014-07-25 13:58:59 +02:00
2014-07-15 11:21:59 +02:00
2014-07-08 18:30:22 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-05-12 14:56:01 +02:00
2014-07-06 17:05:41 +02:00
2014-07-24 16:22:52 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-23 11:48:05 +05:30
2014-07-23 16:58:00 +02:00
2014-06-25 17:13:43 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-12 09:09:59 +02:00
2014-07-18 14:59:38 +02:00
2014-07-23 16:58:00 +02:00
2014-07-07 11:23:06 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-08 15:32:38 +02:00
2014-06-13 16:19:05 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 16:41:15 +02:00
2014-07-06 17:05:41 +02:00
2014-06-12 09:09:59 +02:00
2014-07-03 11:46:44 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-12 13:29:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-25 17:13:43 +02:00
2014-06-25 14:17:24 +02:00
2014-06-29 04:12:15 +02:00
2014-06-18 09:32:48 +02:00
2014-06-25 14:17:24 +02:00
2014-07-06 17:05:41 +02:00
2014-06-27 16:14:40 +02:00
2014-06-25 17:13:43 +02:00
2014-06-25 14:17:24 +02:00
2014-06-15 02:50:13 -06:00
2014-06-23 15:37:40 +02:00
2014-06-16 10:25:12 +02:00
2014-07-07 11:23:06 +02:00
2014-07-15 10:38:14 +02:00
2014-07-06 17:05:41 +02:00
2014-07-05 01:45:45 +02:00
2014-06-26 17:00:48 +02:00
2014-07-01 00:45:43 +02:00
2014-07-10 16:12:35 +02:00
2014-06-25 14:17:24 +02:00
2014-06-25 14:17:24 +02:00
2014-05-27 11:06:18 +03:00
2014-07-06 17:05:41 +02:00
2014-06-19 16:00:30 +02:00
2014-06-25 14:17:24 +02:00
2014-06-25 14:17:24 +02:00
2014-06-11 08:44:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-24 16:22:52 +02:00
2014-06-12 09:09:59 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-08 17:33:00 +02:00
2014-07-18 13:45:41 +02:00
2014-07-07 11:23:06 +02:00
2014-07-18 14:59:38 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-07 11:23:06 +02:00
2014-07-18 13:45:41 +02:00
2014-07-18 14:59:38 +02:00
2014-05-27 20:49:49 +02:00
2014-07-06 17:05:41 +02:00
2014-05-27 11:35:32 +02:00
2014-05-27 16:57:31 +02:00
2014-05-27 11:35:32 +02:00
2014-06-12 09:09:59 +02:00
2014-05-27 11:35:32 +02:00
2014-07-22 08:58:02 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-06-12 09:09:59 +02:00
2014-07-23 16:58:00 +02:00
2014-07-06 17:05:41 +02:00
2014-07-23 16:58:00 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-06-12 09:09:59 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-23 16:58:00 +02:00
2014-07-18 13:45:41 +02:00
2014-07-05 01:28:19 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-06-25 17:13:43 +02:00
2014-07-10 19:03:07 +02:00
2014-07-18 13:45:41 +02:00
2014-06-26 12:31:15 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-23 16:58:00 +02:00
2014-05-18 05:53:48 +00:00
2014-07-08 17:33:00 +02:00
2014-06-25 17:13:43 +02:00
2014-06-12 09:09:59 +02:00
2014-05-18 05:53:48 +00:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-23 16:58:00 +02:00
2014-07-22 17:46:46 +02:00
2014-07-22 19:13:13 +02:00
2014-07-23 23:32:13 +02:00
2014-07-23 10:28:26 +02:00
2014-07-07 14:33:01 +02:00
2014-07-16 11:58:22 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-05 02:47:28 +02:00
2014-07-25 12:45:21 +02:00
2014-07-18 13:45:41 +02:00
2014-07-11 13:58:26 +02:00
2014-07-07 14:58:12 +02:00
2014-05-14 05:55:34 +00:00
2014-06-13 13:32:24 +02:00
2014-06-27 16:14:40 +02:00
2014-07-07 15:20:14 +02:00
2014-07-04 14:42:38 +02:00
2014-07-18 13:19:02 +02:00
2014-07-01 16:49:53 +02:00
2014-05-14 05:55:34 +00:00
2014-07-25 10:59:49 +02:00
2014-07-18 14:59:38 +02:00
2014-06-12 16:27:11 +02:00
2014-07-23 16:58:00 +02:00
2014-07-10 22:49:53 +02:00
2014-07-05 01:28:19 +02:00
2014-07-18 13:45:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 13:45:41 +02:00
2014-07-23 16:58:00 +02:00
2014-07-25 13:58:59 +02:00
2014-07-16 14:59:22 +02:00
2014-06-11 08:44:41 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 15:07:59 +02:00
2014-06-16 16:00:06 +05:30
2014-07-16 09:43:33 +02:00
2014-07-23 16:58:00 +02:00
2014-07-23 16:58:00 +02:00
2014-07-06 17:05:41 +02:00
2014-07-18 14:59:38 +02:00
2014-05-13 11:35:45 +02:00
2014-07-18 14:59:38 +02:00
2014-06-27 12:00:49 +02:00
2014-07-23 16:58:00 +02:00
2014-07-23 16:58:00 +02:00
2014-07-02 20:34:21 +02:00
2014-07-18 13:45:41 +02:00