diff options
| author | Richard Mathot <rim@odoo.com> | 2017-08-03 17:16:33 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-08-04 14:54:26 +0200 |
| commit | bfbaaa7d1319d109018b4e77ff930dadb8211cee (patch) | |
| tree | fe1cd86f2e1a085438fdcc2e079bc8529234b479 /odoo/addons/base/tests/test_expression.py | |
| parent | ed58cee2b9394ba8678f75249879b561861a94ae (diff) | |
[IMP] base: countries/territories list cleaning
The world changes and some country names too :
- Anguilla is not a part of Saint Kitts and Nevis anymore (1980)
- East Timor is now called Timor-Leste and has a new ISO code (2002)
- Netherlands Antilles have been split in CW, SX, BQ (2010)
- Neutral Zone between Irak and Saudi Arabia does not exist anymore
(1991)
- The U.N. now use "State of Palestine" for West Bank and Gaza (2012)
- Yugoslavia has been split (1992) then some remaining parts renamed as
"Serbia and Montenegro" (2003)
- Zaire is now called Democratic Republic of the Congo (1997)
We also fixed/simplified names of other countries/territories when
there is a more vernacular name that is not ambiguous or simply a typo
source: https://www.iso.org/obp/ui/en/#search
(We also fix a test that count countries beginning by Z, and there is
no Zaire anymore)
Diffstat (limited to 'odoo/addons/base/tests/test_expression.py')
| -rw-r--r-- | odoo/addons/base/tests/test_expression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/tests/test_expression.py b/odoo/addons/base/tests/test_expression.py index 07a087d0842..2ee7429f90a 100644 --- a/odoo/addons/base/tests/test_expression.py +++ b/odoo/addons/base/tests/test_expression.py @@ -537,7 +537,7 @@ class TestExpression(TransactionCase): countries = Country.search([('name', '=like', 'Ind__')]) self.assertTrue(len(countries) == 1, "Must match India only") countries = Country.search([('name', '=ilike', 'z%')]) - self.assertTrue(len(countries) == 3, "Must match only countries with names starting with Z (currently 3)") + self.assertTrue(len(countries) == 2, "Must match only countries with names starting with Z (currently 2)") def test_translate_search(self): Country = self.env['res.country'] |
