Pedro M. Baeza
e3e85260b4
[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.
8 years ago
Pedro M. Baeza
684d407e6e
[FIX] base_location_geonames_import: Don't alias Warning
9 years ago
Pedro M. Baeza
d38cb6043e
[IMP] base_location_geonames_import: Make tests more efficient
9 years ago
Pedro M. Baeza
a2179a835f
[MIG] base_location_geonames_import: Initial migration to 9.0
9 years ago
Iván Todorovich
819a7e8daa
OCA requirements
9 years ago
Iván Todorovich
27ec6de659
Added option to convert retreived names to Title Case.
9 years ago
Alexandre Fayolle
84c8896bda
protect import of external dependencies
Odoo won't install an addon if the external dependencies are not met.
However, the python modules of the addons are imported at startup, and the
lack of an external dependency for an external addon will cause a crash,
therefore the import needs to be in a try..except block.
closes #100
10 years ago
Pedro M. Baeza
70eea50899
[FIX] base_location_geonames_import: Use self.env and recordsets
10 years ago
Pedro M. Baeza
a52694d6b2
[IMP] base_location_geonames_import: Several improvements and added hooks
* 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.
10 years ago
Lorenzo Battistini
49048f5da1
[FIX] missing cr uid
10 years ago
Lorenzo Battistini
9e426a0226
[IMP] using ir.config_parameter for geonames URL
10 years ago
Lorenzo Battistini
d2b123c6c2
[FIX] TypeError: unlink() got multiple values for keyword argument 'context'
10 years ago
Lorenzo Battistini
b118c762d4
[REF] select_or_create_state
and tests
10 years ago
Lorenzo Battistini
3d16bd7fd8
[IMP] removing 'FOR UPDATE NOWAIT' as ROW EXCLUSIVE lock is already acquired by DELETE and INSERT
http://www.postgresql.org/docs/9.2/static/explicit-locking.html
10 years ago
Lorenzo Battistini
df29096e03
[REF] porting to new api
10 years ago
Lorenzo Battistini
a9c203e408
[FIX] WARNING test_8 openerp.models: Cannot execute name_search, no _rec_name defined on better.zip.geonames.import
10 years ago
Alexis de Lattre
1bbca70ade
Remove France-specific code ; moved to new module l10n_fr_base_location_geonames_import on lp:openerp-french-localization
11 years ago
Alexis de Lattre
93f47210f7
Add a FOR UPDATE NOWAIT at the beginning of the transaction.
11 years ago
Alexis de Lattre
3dee5bbf07
Insist on the fact that the wizard deletes current better zip entries in the module description and in the wizard itself.
Better error message when the country code inside the file is wrong.
11 years ago
Alexis de Lattre
d0e4108b01
Allow to skip entries in the _prepare method.
11 years ago
Alexis de Lattre
58257b4321
Add support for states (if states are already present in res.country.state).
Add POT file and FR translation.
11 years ago
Alexis de Lattre
7887672941
Add module base_location_geonames_import
11 years ago
Alexis de Lattre
1236d07195
Remove France-specific code ; moved to new module l10n_fr_base_location_geonames_import on lp:openerp-french-localization
11 years ago
Alexis de Lattre
338655b41b
Add a FOR UPDATE NOWAIT at the beginning of the transaction.
11 years ago
Alexis de Lattre
61765d7c9f
Insist on the fact that the wizard deletes current better zip entries in the module description and in the wizard itself.
Better error message when the country code inside the file is wrong.
11 years ago
Alexis de Lattre
25188692f9
Allow to skip entries in the _prepare method.
11 years ago
Alexis de Lattre
9f942f9b73
Add support for states (if states are already present in res.country.state).
Add POT file and FR translation.
11 years ago
Alexis de Lattre
47a3f0a301
Add module base_location_geonames_import
11 years ago
Lorenzo Battistini
0b18fc7649
[REF] select_or_create_state
and tests
10 years ago
Lorenzo Battistini
56256c063c
[IMP] removing 'FOR UPDATE NOWAIT' as ROW EXCLUSIVE lock is already acquired by DELETE and INSERT
http://www.postgresql.org/docs/9.2/static/explicit-locking.html
10 years ago
Lorenzo Battistini
a667113f3b
[REF] porting to new api
10 years ago
Lorenzo Battistini
bd6128b60d
[FIX] WARNING test_8 openerp.models: Cannot execute name_search, no _rec_name defined on better.zip.geonames.import
10 years ago
Alexis de Lattre
f5087d65bf
Remove France-specific code ; moved to new module l10n_fr_base_location_geonames_import on lp:openerp-french-localization
11 years ago
Alexis de Lattre
36436f8afa
Add a FOR UPDATE NOWAIT at the beginning of the transaction.
11 years ago
Alexis de Lattre
e3d6622c9d
Insist on the fact that the wizard deletes current better zip entries in the module description and in the wizard itself.
Better error message when the country code inside the file is wrong.
11 years ago
Alexis de Lattre
c50948770f
Allow to skip entries in the _prepare method.
11 years ago
Alexis de Lattre
828f466be9
Add support for states (if states are already present in res.country.state).
Add POT file and FR translation.
11 years ago
Alexis de Lattre
5d9aeedea9
Add module base_location_geonames_import
11 years ago
Alexis de Lattre
038ac094f0
Remove France-specific code ; moved to new module l10n_fr_base_location_geonames_import on lp:openerp-french-localization
11 years ago
Alexis de Lattre
beee1510ab
Add a FOR UPDATE NOWAIT at the beginning of the transaction.
11 years ago
Alexis de Lattre
c93de6e655
Insist on the fact that the wizard deletes current better zip entries in the module description and in the wizard itself.
Better error message when the country code inside the file is wrong.
11 years ago
Alexis de Lattre
54f92e9144
Allow to skip entries in the _prepare method.
11 years ago
Alexis de Lattre
e0785faa1c
Add support for states (if states are already present in res.country.state).
Add POT file and FR translation.
11 years ago
Alexis de Lattre
30535503af
Add module base_location_geonames_import
11 years ago