Skip to content

Commit

Permalink
Merge PR #1868 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 4, 2024
2 parents 933dfe9 + 9d9eac3 commit f1ef6f7
Show file tree
Hide file tree
Showing 92 changed files with 12,899 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .oca/oca-port/blacklist/base_location_geonames_import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"pull_requests": {
"1083": "Nothing to port"
}
}
117 changes: 117 additions & 0 deletions base_location_geonames_import/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
=============================
Base Location Geonames Import
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2fd6b1dbd59c6e4f741bbdd1640c5533f64c48bc1aa1ebb64878348ab207eb9a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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/18.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-18-0/partner-contact-18-0-base_location_geonames_import
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=18.0
:alt: Try me on Runboat

|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:

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

To access the menu to import city zip entries from Geonames you must be
part of the group *Administration / Settings*.

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

Usage
=====

Go to the menu *Contacts > Configuration > Localization > Import from
Geonames*. In the wizard, select one or several countries and click on
the *Import* button.

For each selected country, the wizard 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20base_location_geonames_import%0Aversion:%2018.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@forgeflow.com>
- Franco Tampieri <franco@tampieri.info>
- Aitor Bouzas <aitor.bouzas@adaptivecity.com>
- Manuel Regidor <manuel.regidor@sygel.es>
- Khoi (Kien Kim) <khoikk@trobz.com>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by:

- Camptocamp.

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/18.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
30 changes: 30 additions & 0 deletions base_location_geonames_import/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2014-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2014 Lorenzo Battistini <lorenzo.battistini@agilebg.com>
# Copyright 2017 ForgeFlow, S.L. <forgeflow.com>
# Copyright 2016-2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Base Location Geonames Import",
"version": "18.0.1.0.0",
"development_status": "Mature",
"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>
156 changes: 156 additions & 0 deletions base_location_geonames_import/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# 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
#. odoo-python
#: code:addons/base_location_geonames_import/wizard/geonames_import.py:0
#, python-format
msgid "%d could not be deleted %"
msgstr ""

#. 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
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
#. odoo-python
#: 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 f1ef6f7

Please sign in to comment.