Skip to content

Commit

Permalink
Merge PR #1039 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 15, 2020
2 parents e5e20ba + bfa814b commit f56dc4c
Show file tree
Hide file tree
Showing 91 changed files with 12,367 additions and 0 deletions.
114 changes: 114 additions & 0 deletions base_location_geonames_import/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
=============================
Base Location Geonames Import
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/13.0/base_location_geonames_import
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location_geonames_import
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/134/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a wizard to import cities and/or city zip entries from
`Geonames <http://www.geonames.org/>`_ database.

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need the Python library 'requests'::

pip install requests

Configuration
=============

To access the menu to import city zip entries from Geonames
you must add yourself to the groups *Administration / Settings* or, if you have sale module
installed, *Sales / Manager* group.

If you want/need to modify the default URL
(http://download.geonames.org/export/zip/), you can set the *geonames.url*
system parameter.

Usage
=====

Go to *Contacts > Configuration > 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 not detected entries, download
the latest version of the list of cities from geonames.org and create new
city zip entries.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20base_location_geonames_import%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion
* Agile Business Group
* Tecnativa
* AdaptiveCity

Contributors
~~~~~~~~~~~~

* Alexis de Lattre <alexis.delattre@akretion.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Dave Lasley <dave@laslabs.com>
* Jordi Ballester <jordi.ballester@eficent.com>
* Franco Tampieri <franco@tampieri.info>
* Aitor Bouzas <aitor.bouzas@adaptivecity.com>
* Manuel Regidor <manuel.regidor@sygel.es>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/13.0/base_location_geonames_import>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions base_location_geonames_import/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizard
31 changes: 31 additions & 0 deletions base_location_geonames_import/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2014-2016 Akretion (Alexis de Lattre
# <alexis.delattre@akretion.com>)
# Copyright 2014 Lorenzo Battistini <lorenzo.battistini@agilebg.com>
# Copyright 2016-2020 Tecnativa - Pedro M. Baeza
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
# <contact@eficent.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Base Location Geonames Import",
"version": "14.0.1.0.0",
"category": "Partner Management",
"license": "AGPL-3",
"summary": "Import zip entries from Geonames",
"author": (
"Akretion,"
"Agile Business Group,"
"Tecnativa,"
"AdaptiveCity,"
"Odoo Community Association (OCA)"
),
"website": "https://github.com/OCA/partner-contact",
"depends": ["base_location"],
"data": [
"security/ir.model.access.csv",
"data/res_country_data.xml",
"views/res_country_view.xml",
"wizard/geonames_import_view.xml",
],
"installable": True,
}
11 changes: 11 additions & 0 deletions base_location_geonames_import/data/res_country_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="base.es" model="res.country">
<field name="geonames_state_code_column" eval="6" />
<field name="geonames_state_name_column" eval="5" />
</record>
<record id="base.it" model="res.country">
<field name="geonames_state_code_column" eval="6" />
<field name="geonames_state_name_column" eval="5" />
</record>
</odoo>
149 changes: 149 additions & 0 deletions base_location_geonames_import/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_location_geonames_import
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: partner-contact (9.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-20 23:45+0000\n"
"PO-Revision-Date: 2016-04-28 11:44+0000\n"
"Last-Translator: <>\n"
"Language-Team: Amharic (http://www.transifex.com/oca/OCA-partner-contact-9-0/"
"language/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: base_location_geonames_import
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid ""
", create new location entries if not found already in the system, and "
"<b>delete missing entries</b> from new file."
msgstr ""

#. module: base_location_geonames_import
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid "Cancel"
msgstr "Cancelar"

#. module: base_location_geonames_import
#: model:ir.model.fields,help:base_location_geonames_import.field_city_zip_geonames_import__letter_case
msgid ""
"Converts retreived city and state names to Title Case (upper case on each "
"first letter of a word) or Upper Case (all letters upper case)."
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__country_ids
msgid "Countries"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model,name:base_location_geonames_import.model_res_country
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__country_id
msgid "Country"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__create_date
msgid "Created on"
msgstr "Creado en"

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__display_name
msgid "Display Name"
msgstr ""

#. module: base_location_geonames_import
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid ""
"For the selected country, this wizard will download the latest version of "
"the list of cities from"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_res_country__geonames_state_code_column
msgid "Geonames State Code Column"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_res_country__geonames_state_name_column
msgid "Geonames State Name Column"
msgstr ""

#. module: base_location_geonames_import
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:0
#, python-format
msgid "Got an error %d when trying to download the file %s."
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__id
msgid "ID"
msgstr "ID"

#. module: base_location_geonames_import
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid "Import"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model,name:base_location_geonames_import.model_city_zip_geonames_import
msgid "Import City Zips from Geonames"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.actions.act_window,name:base_location_geonames_import.city_zip_geonames_import_action
#: model:ir.ui.menu,name:base_location_geonames_import.city_zip_geonames_import_menu
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid "Import from Geonames"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: base_location_geonames_import
#: model:ir.model.fields,field_description:base_location_geonames_import.field_city_zip_geonames_import__letter_case
msgid "Letter Case"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields.selection,name:base_location_geonames_import.selection__city_zip_geonames_import__letter_case__title
msgid "Title Case"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields.selection,name:base_location_geonames_import.selection__city_zip_geonames_import__letter_case__unchanged
msgid "Unchanged"
msgstr ""

#. module: base_location_geonames_import
#: model:ir.model.fields.selection,name:base_location_geonames_import.selection__city_zip_geonames_import__letter_case__upper
msgid "Upper Case"
msgstr ""

#. module: base_location_geonames_import
#: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form
msgid "geonames.org"
msgstr ""
Loading

0 comments on commit f56dc4c

Please sign in to comment.