Browse Source
[IMP] base_location_geonames_import: Several improvements and added hooks
[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. [FIX] base_location_geonames_import: Use self.env and recordsetspull/643/head
Pedro M. Baeza
10 years ago
10 changed files with 1011 additions and 104 deletions
-
61base_location_geonames_import/README.rst
-
30base_location_geonames_import/__openerp__.py
-
4base_location_geonames_import/i18n/base_location_geonames_import.pot
-
68base_location_geonames_import/i18n/es.po
-
4base_location_geonames_import/i18n/fr.po
-
2base_location_geonames_import/i18n/it.po
-
BINbase_location_geonames_import/static/description/icon.png
-
782base_location_geonames_import/static/description/icon.svg
-
94base_location_geonames_import/wizard/geonames_import.py
-
26base_location_geonames_import/wizard/geonames_import_view.xml
@ -0,0 +1,61 @@ |
|||||
|
Base Location Geonames Import |
||||
|
============================= |
||||
|
|
||||
|
This module adds a wizard to import better zip entries from Geonames database. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
For installing this module, you need these Python libraries: requests and |
||||
|
unicodecsv. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
For seeing the menu, you need to activate *Technical features* option in your |
||||
|
user and to be *Sales manager*. |
||||
|
|
||||
|
If want want/need to modify the default URL |
||||
|
(http://download.geonames.org/export/zip/), you can set the 'geonames.url' |
||||
|
system parameter. |
||||
|
|
||||
|
Usage |
||||
|
===== |
||||
|
|
||||
|
Go to *Sales > Configuration > Address book > Localization > Import from Geonames*, |
||||
|
and click on it to open a wizard. |
||||
|
|
||||
|
When you start the wizard, it will ask you to select a country. Then, for the |
||||
|
selected country, it will delete all the current better zip entries, download |
||||
|
the latest version of the list of cities from geonames.org and create new |
||||
|
better zip entries. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Alexis de Lattre <alexis.delattre@akretion.com> |
||||
|
* Lorenzo Battistini <lorenzo.battistini@agilebg.com> |
||||
|
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> |
||||
|
|
||||
|
Icon |
||||
|
---- |
||||
|
* http://icon-park.com/icon/location-map-pin-orange3/ |
||||
|
* http://commons.wikimedia.org/wiki/File:View-refresh.svg |
||||
|
|
||||
|
|
||||
|
Maintainer |
||||
|
---------- |
||||
|
|
||||
|
.. image:: http://odoo-community.org/logo.png |
||||
|
:alt: Odoo Community Association |
||||
|
:target: http://odoo-community.org |
||||
|
|
||||
|
This module is maintained by the OCA. |
||||
|
|
||||
|
OCA, or the Odoo Community Association, is a nonprofit organization whose |
||||
|
mission is to support the collaborative development of Odoo features and |
||||
|
promote its widespread use. |
||||
|
|
||||
|
To contribute to this module, please visit http://odoo-community.org. |
@ -0,0 +1,68 @@ |
|||||
|
# Translation of OpenERP Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * base_location_geonames_import |
||||
|
# |
||||
|
msgid "" |
||||
|
msgstr "" |
||||
|
"Project-Id-Version: OpenERP Server 7.0\n" |
||||
|
"Report-Msgid-Bugs-To: \n" |
||||
|
"POT-Creation-Date: 2014-04-11 20:55+0000\n" |
||||
|
"PO-Revision-Date: 2014-04-11 20:55+0000\n" |
||||
|
"Last-Translator: <>\n" |
||||
|
"Language-Team: \n" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Plural-Forms: \n" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: view:better.zip.geonames.import:0 |
||||
|
msgid "Cancel" |
||||
|
msgstr "Cancelar" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: field:better.zip.geonames.import,country_id:0 |
||||
|
msgid "Country" |
||||
|
msgstr "País" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:66 |
||||
|
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:90 |
||||
|
#, python-format |
||||
|
msgid "Error:" |
||||
|
msgstr "Error:" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: view:better.zip.geonames.import:0 |
||||
|
msgid "For the country selected above, this wizard will download the latest version of the list of cities from geonames.org, create new location entries if not found already in the system, and DELETE MISSING ENTRIES from new file." |
||||
|
msgstr "Para el país seleccionado arriba, este asistente descargará la última versión de la lista de ciudades de geonames.org, creará nuevas entradas de ubicaciones si no se encuentran ya en el sistema, y BORRARÁ LOS REGISTROS DESAPARECIDOS en el nuevo archivo." |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:91 |
||||
|
#, python-format |
||||
|
msgid "Got an error %d when trying to download the file %s." |
||||
|
msgstr "Se obtuvo un error %d cuando se descargaba el archivo %s." |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: view:better.zip.geonames.import:0 |
||||
|
msgid "Import" |
||||
|
msgstr "Importar" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: model:ir.model,name:base_location_geonames_import.model_better_zip_geonames_import |
||||
|
msgid "Import Better Zip from Geonames" |
||||
|
msgstr "Importar ubicaciones de Geonames" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: view:better.zip.geonames.import:0 |
||||
|
#: model:ir.actions.act_window,name:base_location_geonames_import.better_zip_geonames_import_action |
||||
|
#: model:ir.ui.menu,name:base_location_geonames_import.better_zip_geonames_import_menu |
||||
|
msgid "Import from Geonames" |
||||
|
msgstr "Importar de GeoNames" |
||||
|
|
||||
|
#. module: base_location_geonames_import |
||||
|
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:67 |
||||
|
#, python-format |
||||
|
msgid "The country code inside the file (%s) doesn't correspond to the selected country (%s)." |
||||
|
msgstr "El código de país dentro del archivo (%s) no se corresponde con el país seleccionado (%s)." |
||||
|
|
After Width: 128 | Height: 128 | Size: 13 KiB |
782
base_location_geonames_import/static/description/icon.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue