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

Syncing from upstream OCA/partner-contact (17.0) #1167

Merged
merged 51 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
7a39e83
[IMP] Update copier template
pedrobaeza Feb 29, 2024
1949139
Add module base_location_geonames_import
Mar 30, 2014
3c1d0ab
[FIX] WARNING test_8 openerp.models: Cannot execute name_search, no _…
eLBati Aug 10, 2014
b52175d
[Add] Add some italian translation
Sep 22, 2014
6d3945f
[IMP] base_location_geonames_import: Several improvements and added h…
pedrobaeza Feb 25, 2015
a225bfa
Added option to convert retreived names to Title Case.
ivantodorovich Dec 21, 2015
da13c9e
[MIG] base_location_geonames_import: Initial migration to 9.0
pedrobaeza Mar 12, 2016
50306cd
Port base_location_geonames_import to v10
alexis-via Oct 24, 2016
00d37be
[FIX+IMP] base_location_geonames_import
pedrobaeza Dec 30, 2016
9262fd1
[FIX] Fix usage in Readme.md
Mar 20, 2017
a5dc1ac
[10.0][IMP] base_location(geonames): Add Lat/Long (#405)
lasley Apr 24, 2017
2ca2bdf
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
238c25e
migration to 11.0
JordiBForgeFlow Oct 13, 2017
c5aad60
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
e0a61fd
[IMP] base_location_geonames_import: Add conf for selecting state col…
drdran Jan 3, 2018
37b9454
[MIG] base_location_geonames_import: Migration to 12.0
aitorbouzas Oct 16, 2018
53af547
Translated using Weblate (Spanish)
josepmy Aug 4, 2019
e16f8c5
[FIX] base_location_geonames_import: Handle duplicated city names
pedrobaeza Jul 29, 2019
769e3c4
Translated using Weblate (Portuguese (Brazil))
Sep 17, 2019
c7f54de
[MIG] base_location_geonames_import: Migration to 13.0
pedrobaeza Sep 30, 2019
96285fe
pre-commit, black, isort
OCA-git-bot Oct 12, 2019
3bf7d2c
fix pylint warning
Daemo00 Oct 13, 2019
e8697e7
pre-commit update
OCA-git-bot Mar 14, 2020
9d900da
[FIX+IMP] base_location: Re-import process
pedrobaeza Apr 2, 2020
90657a2
[FIX] base_location_geonames_import: Error on else code
pedrobaeza Apr 3, 2020
314896b
[IMP] base_location_geonames_import: Allow to import several countrie…
manuelregidor Apr 6, 2020
8a33b87
Translated using Weblate (Portuguese (Brazil))
Aug 12, 2020
12fb83d
[MIG] base_location_geonames_import to v14
alexis-via Nov 26, 2020
043e8db
[MIG+FIX] base_location_geonames_import: Adjust tests + setup
pedrobaeza Dec 15, 2020
43f134c
[FIX] old_zip id may be removed more than once
ivantodorovich Jun 9, 2021
d0d8711
[MIG] base_location_geonames_import: Migration to 15.0
pedrobaeza Nov 16, 2021
73dc173
[IMP] base_location_geonames_import: Try/except is added to remove ci…
victoralmau Feb 15, 2022
ad74f04
[FIX] base_location_geonames_import: some bottlenecks
yajo Apr 1, 2022
a9e42a0
Translated using Weblate (Catalan)
pablontura Apr 13, 2022
acb257e
[MIG] base_location_geonames_import: Migration to 16.0
pedrobaeza Oct 18, 2022
b86f512
Translated using Weblate (German)
marylla Nov 4, 2022
6926fd6
Translated using Weblate (Croatian)
badbole Jan 30, 2023
3d92203
Translated using Weblate (French)
vdewulf Feb 3, 2023
2199e39
Translated using Weblate (Italian)
Mar 23, 2023
ef9ca4b
Translated using Weblate (Italian)
mymage Mar 23, 2023
31471e5
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 30, 2023
94e9330
Translated using Weblate (French)
victor-champonnois Jun 2, 2023
34929fb
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
1fd2f21
Translated using Weblate (Italian)
francesco-ooops Sep 20, 2023
c6973a1
Translated using Weblate (Italian)
mymage Sep 22, 2023
706285b
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 31, 2023
d01ae98
[IMP] base_location_geonames_import: pre-commit auto fixes
pedrobaeza Feb 29, 2024
2df8336
[MIG] base_location_geonames_import: Migration to 17.0
pedrobaeza Feb 29, 2024
d28d268
Merge PR #1681 into 17.0
OCA-git-bot Feb 29, 2024
3438325
[UPD] Update base_location_geonames_import.pot
Feb 29, 2024
c2e7ded
[BOT] post-merge updates
OCA-git-bot Feb 29, 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
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.19
_commit: v1.20
_src_path: gh:oca/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
hooks:
- id: whool-init
- repo: https://github.com/oca/maintainer-tools
rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand Down Expand Up @@ -110,7 +110,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/OCA/pylint-odoo
rev: v8.0.19
rev: v9.0.4
hooks:
- id: pylint_odoo
name: pylint with optional checks
Expand Down
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fix = true
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[base_location](base_location/) | 17.0.1.0.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Enhanced zip/npa management system
[base_location_geonames_import](base_location_geonames_import/) | 17.0.1.0.0 | | Import zip entries from Geonames
[partner_address_street3](partner_address_street3/) | 17.0.1.0.0 | | Add a third address line on partners
[partner_company_type](partner_company_type/) | 17.0.1.0.0 | | Adds a company type to partner that are companies
[partner_contact_birthdate](partner_contact_birthdate/) | 17.0.1.0.0 | [![Daemo00](https://github.com/Daemo00.png?size=30px)](https://github.com/Daemo00) | Contact's birthdate
Expand Down
108 changes: 108 additions & 0 deletions base_location_geonames_import/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=============================
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/17.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-17-0/partner-contact-17-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=17.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:%2017.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 <[email protected]>
- Lorenzo Battistini <[email protected]>
- Pedro M. Baeza <[email protected]>
- Dave Lasley <[email protected]>
- Jordi Ballester <[email protected]>
- Franco Tampieri <[email protected]>
- Aitor Bouzas <[email protected]>
- Manuel Regidor <[email protected]>

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/17.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 <[email protected]>)
# Copyright 2014 Lorenzo Battistini <[email protected]>
# 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": "17.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