From c325ed150f066ad5feac29561294dbce401b6906 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 30 Sep 2019 16:19:47 +0200 Subject: [PATCH] [MIG] base_location_geonames_import: Migration to 13.0 Standard procedure --- base_location_geonames_import/README.rst | 11 ++++---- base_location_geonames_import/__manifest__.py | 4 +-- .../i18n/base_location_geonames_import.pot | 27 +++++++++++-------- .../static/description/index.html | 6 ++--- .../wizard/geonames_import.py | 1 - 5 files changed, 26 insertions(+), 23 deletions(-) diff --git a/base_location_geonames_import/README.rst b/base_location_geonames_import/README.rst index ed73d546f..f8125b733 100644 --- a/base_location_geonames_import/README.rst +++ b/base_location_geonames_import/README.rst @@ -14,13 +14,13 @@ Base Location Geonames Import :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/12.0/base_location_geonames_import + :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-12-0/partner-contact-12-0-base_location_geonames_import + :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/12.0 + :target: https://runbot.odoo-community.org/runbot/134/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,7 +40,6 @@ To install this module, you need the Python library 'requests':: pip install requests - Configuration ============= @@ -70,7 +69,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -109,6 +108,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/partner-contact `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_location_geonames_import/__manifest__.py b/base_location_geonames_import/__manifest__.py index a8fd04766..b5613d507 100644 --- a/base_location_geonames_import/__manifest__.py +++ b/base_location_geonames_import/__manifest__.py @@ -1,14 +1,14 @@ # Copyright 2014-2016 Akretion (Alexis de Lattre # ) # Copyright 2014 Lorenzo Battistini -# Copyright 2016 Pedro M. Baeza +# Copyright 2016-2019 Tecnativa - Pedro M. Baeza # Copyright 2017 Eficent Business and IT Consulting Services, S.L. # # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { 'name': 'Base Location Geonames Import', - 'version': '12.0.1.0.1', + 'version': '13.0.1.0.0', 'category': 'Partner Management', 'license': 'AGPL-3', 'summary': 'Import zip entries from Geonames', diff --git a/base_location_geonames_import/i18n/base_location_geonames_import.pot b/base_location_geonames_import/i18n/base_location_geonames_import.pot index 31d353e88..0cdd3ab13 100644 --- a/base_location_geonames_import/i18n/base_location_geonames_import.pot +++ b/base_location_geonames_import/i18n/base_location_geonames_import.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_location_geonames_import +# * base_location_geonames_import # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -15,7 +15,9 @@ 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 delete missing entries from new file." +msgid "" +", create new location entries if not found already in the system, and " +"delete missing entries from new file." msgstr "" #. module: base_location_geonames_import @@ -25,7 +27,9 @@ msgstr "" #. 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)." +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 @@ -51,7 +55,9 @@ 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" +msgid "" +"For the selected country, this wizard will download the latest version of " +"the list of cities from" msgstr "" #. module: base_location_geonames_import @@ -67,7 +73,7 @@ msgid "Geonames State Name Column" msgstr "" #. module: base_location_geonames_import -#: code:addons/base_location_geonames_import/wizard/geonames_import.py:126 +#: 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 "" @@ -115,17 +121,17 @@ msgid "Letter Case" msgstr "" #. module: base_location_geonames_import -#: selection:city.zip.geonames.import,letter_case:0 +#: 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 -#: selection:city.zip.geonames.import,letter_case:0 +#: 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 -#: selection:city.zip.geonames.import,letter_case:0 +#: model:ir.model.fields.selection,name:base_location_geonames_import.selection__city_zip_geonames_import__letter_case__upper msgid "Upper Case" msgstr "" @@ -133,4 +139,3 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:base_location_geonames_import.city_zip_geonames_import_form msgid "geonames.org" msgstr "" - diff --git a/base_location_geonames_import/static/description/index.html b/base_location_geonames_import/static/description/index.html index 2286cfc75..93566daa8 100644 --- a/base_location_geonames_import/static/description/index.html +++ b/base_location_geonames_import/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

This module adds a wizard to import cities and/or city zip entries from Geonames database.

Table of contents

@@ -415,7 +415,7 @@ city zip entries.

Bugs are tracked on GitHub 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.

+feedback.

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

@@ -448,7 +448,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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 project on GitHub.

+

This module is part of the OCA/partner-contact project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/base_location_geonames_import/wizard/geonames_import.py b/base_location_geonames_import/wizard/geonames_import.py index 5328173d9..7dd5f1b80 100644 --- a/base_location_geonames_import/wizard/geonames_import.py +++ b/base_location_geonames_import/wizard/geonames_import.py @@ -183,7 +183,6 @@ class CityZipGeonamesImport(models.TransientModel): city_dict[(vals['name'], vals['state_id'])] = created_cities[i].id return city_dict - @api.multi def run_import(self): self.ensure_one() parsed_csv = self.get_and_parse_csv()