diff options
| author | Olivier Dony <odo@odoo.com> | 2018-05-14 12:02:34 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@odoo.com> | 2018-06-06 10:22:19 +0200 |
| commit | 025e65a9259d2afea184bd0ecdc2672689cb9d6f (patch) | |
| tree | fe9040703bf74daa617e1fa50d5f2127116c3956 /addons/web/static/src/js | |
| parent | 02bc8e8c7fc1ccdfd5d66a6c8c9e45e4fc0d9bf7 (diff) | |
[REV] Revert "[IMP] base: select countries & state based on exact code, (useful for import and fast many2one)"
This reverts commit 09a22e3bef663143c10a6e502f1f207cdf69aab2, which was
attempting to fix a use case that was actually working.
It also created a duplicate `name_search()` method for res.country, in
addition to the one aliased to `location_name_search()`
It is indeed supported to import countries and states, using the
country code or state code as the imported value. These will be matched
uniquely thanks to the special `name_search()` performed for import,
forcing the `operator`.
And this is done while still allowing proper auto-completing for normal
UI case, where the "exact code match" will only promote an extra result
at the top of the suggested matches, rather than limit the results to a
single match.
The confusion apparently stemmed from the test case using "UK" as the
country code. UK is not a valid ISO country code, so it would never
match as expected.
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
