* Performance was very poor due to several reasons:
* City name translatable.
* Lack on indexes when deleting obsolete records.
* Some prefetching.
* City was not being searched also by state, having the chance of returning
incorrect matches if same city name on different states.
* Previous code was removing all previous records of zip entries!
* Remove possible obsolete FK keys after migrating from v11.
If there are several cities with the same name in different states, previous code doesn't
handle correctly this situation.
We amend this storing in the cached dictionary both city name and state.
Includes a test for checking this specific condition, got from real data in US.
Fixes#749
* [IMP] base_location: Add lat & long to `better.zip`
* Add latitude and longitude columns to `better.zip`
* [IMP] base_location_geonames_import: Add lat/long
* Add support for latitude & longitude to genomes importer
* Tests
* New menu location
* Wizard options fixed
[IMP] base_location_geonames_import
* Speed improvement applying cache for not doing duplicated searches
over states.
* Tests change to SavepointCase, which only passes over setUp one time.
[IMP] base_location_geonames_import: Make tests more efficient
[FIX] base_location_geonames_import: Don't alias Warning
[IMP] base_location_geonames_import: Convert tests to Python + switch imported country
Monaco country is very little and it allows to save some downloaded bytes plus making
a test for entries deletion
[IMP] base_location_geonames_import: Switch author
[FIX] base_location_geonames_import: Fix test
[FIX] base_location_geonames_import: Fix tests
[MIG] Make modules uninstallable
[MIG] Rename manifest files
[FIX] base_location_geonames_import: Test logic changed
For avoiding constant problems with this test, as Monaco data changes a lot,
what we are testing now is the existence of the data, not the exact match of them.
* Added Icon.
* Improve module description and extracted to README.rst.
* Pass country instead of country_id for advance comparisons.
* Allow to transform city name.
* Some code style.
* Do not remove all entries of a country, but only not found.
* Include hooks for transforming some things.
* Include spanish translation.
[FIX] base_location_geonames_import: Use self.env and recordsets