Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] base_location_geonames_import: Migration to 18.0 #1868

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0e77370
Add module base_location_geonames_import
Mar 30, 2014
ddb4950
[FIX] WARNING test_8 openerp.models: Cannot execute name_search, no _…
eLBati Aug 10, 2014
c1f42e5
[Add] Add some italian translation
Sep 22, 2014
e042004
[IMP] base_location_geonames_import: Several improvements and added h…
pedrobaeza Feb 25, 2015
64c3264
Added option to convert retreived names to Title Case.
ivantodorovich Dec 21, 2015
99dd616
[MIG] base_location_geonames_import: Initial migration to 9.0
pedrobaeza Mar 12, 2016
797abcf
Port base_location_geonames_import to v10
alexis-via Oct 24, 2016
617a18f
[FIX+IMP] base_location_geonames_import
pedrobaeza Dec 30, 2016
3ece5a2
[FIX] Fix usage in Readme.md
Mar 20, 2017
e26b2ce
[10.0][IMP] base_location(geonames): Add Lat/Long (#405)
lasley Apr 24, 2017
ab71e33
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
3dae1a5
migration to 11.0
JordiBForgeFlow Oct 13, 2017
ca1ed44
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
d139ced
[IMP] base_location_geonames_import: Add conf for selecting state col…
drdran Jan 3, 2018
930e043
[MIG] base_location_geonames_import: Migration to 12.0
aitorbouzas Oct 16, 2018
bb630be
Translated using Weblate (Spanish)
josepmy Aug 4, 2019
7bcaa42
[FIX] base_location_geonames_import: Handle duplicated city names
pedrobaeza Jul 29, 2019
e757e65
Translated using Weblate (Portuguese (Brazil))
Sep 17, 2019
4b7080d
[MIG] base_location_geonames_import: Migration to 13.0
pedrobaeza Sep 30, 2019
d4667e3
pre-commit, black, isort
OCA-git-bot Oct 12, 2019
45ee67e
fix pylint warning
Daemo00 Oct 13, 2019
87d5ad2
pre-commit update
OCA-git-bot Mar 14, 2020
4ce89d7
[FIX+IMP] base_location: Re-import process
pedrobaeza Apr 2, 2020
14bff15
[FIX] base_location_geonames_import: Error on else code
pedrobaeza Apr 3, 2020
b969d20
[IMP] base_location_geonames_import: Allow to import several countrie…
manuelregidor Apr 6, 2020
2dd632c
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
c2ebbe3
[MIG] base_location_geonames_import to v14
alexis-via Nov 26, 2020
5e85f9a
[MIG+FIX] base_location_geonames_import: Adjust tests + setup
pedrobaeza Dec 15, 2020
c4a8405
[FIX] old_zip id may be removed more than once
ivantodorovich Jun 9, 2021
251c0c2
[MIG] base_location_geonames_import: Migration to 15.0
pedrobaeza Nov 16, 2021
ce3f145
[IMP] base_location_geonames_import: Try/except is added to remove ci…
victoralmau Feb 15, 2022
a8d791f
[FIX] base_location_geonames_import: some bottlenecks
yajo Apr 1, 2022
6ffc529
Translated using Weblate (Catalan)
pablontura Apr 13, 2022
935df21
[MIG] base_location_geonames_import: Migration to 16.0
pedrobaeza Oct 18, 2022
7783301
Translated using Weblate (German)
marylla Nov 4, 2022
0eff5e8
Translated using Weblate (Croatian)
badbole Jan 30, 2023
d82546a
Translated using Weblate (French)
vdewulf Feb 3, 2023
b9303ef
Translated using Weblate (Italian)
Mar 23, 2023
cc223dd
Translated using Weblate (Italian)
mymage Mar 23, 2023
eb7c875
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 30, 2023
a89faab
Translated using Weblate (French)
victor-champonnois Jun 2, 2023
fb8f8da
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
f183d04
Translated using Weblate (Italian)
francesco-ooops Sep 20, 2023
dfec238
Translated using Weblate (Italian)
mymage Sep 22, 2023
11b5354
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 31, 2023
eb0384a
[IMP] base_location_geonames_import: pre-commit auto fixes
pedrobaeza Feb 29, 2024
f2be96e
[MIG] base_location_geonames_import: Migration to 17.0
pedrobaeza Feb 29, 2024
c8ab742
[UPD] Update base_location_geonames_import.pot
Feb 29, 2024
ab296e4
[BOT] post-merge updates
OCA-git-bot Feb 29, 2024
d658818
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
e4bb521
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
aa90a43
Translated using Weblate (Catalan)
esteveblanch Sep 4, 2024
357ebf2
[IMP] base_location_geonames_import: pre-commit auto fixes
Kimkhoi3010 Oct 8, 2024
d2fec9a
[FIX] base_location_geonames_import: Fixes for re-imports
pedrobaeza Dec 1, 2024
5ee0b3d
oca-port: blacklist PR(s) 1083 for base_location_geonames_import
Kimkhoi3010 Oct 15, 2024
9d9eac3
[MIG] base_location_geonames_import: Migration to 18.0
Kimkhoi3010 Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading