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

[11.0][MIG] base_location_nuts: Migration to 11.0 #518

Merged
merged 9 commits into from
Jan 23, 2018
Merged
86 changes: 86 additions & 0 deletions base_location_nuts/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

============
NUTS Regions
============

This module allows to import NUTS locations.

Creates four new fields in Partner object, one per NUTS level

* NUTS L1: Country level
* NUTS L2: Normally state or big region level
* NUTS L3: Normally substate or state level
* NUTS L4: Normally small region or province level


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

We recommend to install another addon (one for each country) in order to relate
NUTS with states defined by each localization addon, for example:

* l10n_es_location_nuts : Spanish Provinces (NUTS level 4) related to Partner State
* l10n_de_location_nuts : German states (NUTS level 2) related to Partner State


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

After installation, you must click at import wizard to populate NUTS items
in Odoo database in:
Sales > Configuration > Address Book > Import NUTS 2013

This wizard will download from Europe RAMON service the metadata to
build NUTS in Odoo. Each localization addon (l10n_es_location_nuts,
l10n_de_location_nuts, ...) will inherit this wizard and
relate each NUTS item with states. So if you install a new localization addon
you must re-build NUTS clicking this wizard again.


Usage
=====

Only Administrator can manage NUTS list (it is not neccesary because
it is an European convention) but any registered user can read them,
in order to allow to assign them to partner object.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/11.0

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 smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------

* Rafael Blasco <rafael.blasco@tecnativa.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
2 changes: 2 additions & 0 deletions base_location_nuts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
28 changes: 28 additions & 0 deletions base_location_nuts/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
'name': 'NUTS Regions',
'category': 'Localisation/Europe',
'version': '11.0.1.0.0',
'depends': [
'contacts',
],
'data': [
'views/res_country_view.xml',
'views/res_partner_nuts_view.xml',
'views/res_partner_view.xml',
'wizard/nuts_import_view.xml',
'security/ir.model.access.csv',
],
'images': [
'images/new_fields.png',
],
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/partner-contact/',
'license': 'AGPL-3',
'installable': True,
}
257 changes: 257 additions & 0 deletions base_location_nuts/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_location_nuts
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-08 02:41+0000\n"
"PO-Revision-Date: 2017-07-08 02:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.nuts_import_form
msgid "Cancel"
msgstr "Cancelar"

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_child_ids
msgid "Children"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_code
msgid "Code"
msgstr ""

#. module: base_location_nuts
#: model:ir.model,name:base_location_nuts.model_res_country
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_country_id
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_nuts_filter
msgid "Country"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_nuts_import_create_uid
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_nuts_import_create_date
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_create_date
msgid "Created on"
msgstr "Creado en"

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_nuts_import_display_name
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_display_name
msgid "Display Name"
msgstr ""

#. module: base_location_nuts
#: code:addons/base_location_nuts/wizard/nuts_import.py:136
#, python-format
msgid "Downloaded file is not a valid XML file"
msgstr ""

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

#. module: base_location_nuts
#: code:addons/base_location_nuts/wizard/nuts_import.py:124
#, python-format
msgid "Got an error when trying to download the file: %s."
msgstr ""

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_nuts_filter
msgid "Group By"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_nuts_import_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_id
msgid "ID"
msgstr "ID"

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.nuts_import_form
msgid "Import"
msgstr ""

#. module: base_location_nuts
#: model:ir.ui.menu,name:base_location_nuts.nuts_import_menu
msgid "Import NUTS 2013"
msgstr ""

#. module: base_location_nuts
#: model:ir.actions.act_window,name:base_location_nuts.nuts_import_action
#: model:ir.ui.view,arch_db:base_location_nuts.nuts_import_form
msgid "Import NUTS 2013 from RAMON"
msgstr ""

#. module: base_location_nuts
#: model:ir.model,name:base_location_nuts.model_nuts_import
msgid "Import NUTS items from European RAMON service"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_nuts_import___last_update
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts___last_update
msgid "Last Modified on"
msgstr ""

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

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

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_level
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_nuts_filter
msgid "Level"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,help:base_location_nuts.field_res_country_state_level
msgid "Level for the state NUTS category."
msgstr ""

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.view_country_form
msgid "NUTS"
msgstr ""

#. module: base_location_nuts
#: model:ir.model,name:base_location_nuts.model_res_partner_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.res_partner_nuts_form
msgid "NUTS Item"
msgstr ""

#. module: base_location_nuts
#: model:ir.actions.act_window,name:base_location_nuts.res_partner_nuts_action
#: model:ir.ui.menu,name:base_location_nuts.res_partner_nuts_menu
#: model:ir.ui.view,arch_db:base_location_nuts.res_partner_nuts_tree
msgid "NUTS Items"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_alias_nuts1_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts1_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_users_nuts1_id
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_filter_nuts
msgid "NUTS L1"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_alias_nuts2_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts2_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_users_nuts2_id
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_filter_nuts
msgid "NUTS L2"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_alias_nuts3_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts3_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_users_nuts3_id
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_filter_nuts
msgid "NUTS L3"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_alias_nuts4_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts4_id
#: model:ir.model.fields,field_description:base_location_nuts.field_res_users_nuts4_id
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_filter_nuts
msgid "NUTS L4"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_name
msgid "Name"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_parent_left
msgid "Parent Left"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_parent_right
msgid "Parent Right"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_parent_id
msgid "Parent id"
msgstr ""

#. module: base_location_nuts
#: model:ir.model,name:base_location_nuts.model_res_partner
msgid "Partner"
msgstr "ተባባሪ"

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.view_res_partner_nuts_filter
msgid "Search NUTS"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_partner_nuts_state_id
msgid "State"
msgstr ""

#. module: base_location_nuts
#: model:ir.model.fields,field_description:base_location_nuts.field_res_country_state_level
msgid "State level"
msgstr ""

#. module: base_location_nuts
#: model:ir.ui.view,arch_db:base_location_nuts.nuts_import_form
msgid ""
"This wizard will download the lastest version of\n"
" NUTS 2013 from Europe RAMON metadata service.\n"
" Updating or creating new NUTS entries if not\n"
" found already in the system, and DELETING MISSING\n"
" ENTRIES from new downloaded file."
msgstr ""

#. module: base_location_nuts
#: code:addons/base_location_nuts/wizard/nuts_import.py:106
#, python-format
msgid "Value not found for mandatory field %s"
msgstr ""

#. module: base_location_nuts
#: model:ir.actions.todo,note:base_location_nuts.config_wizard_nuts
msgid "You can import NUTS from RAMON european service."
msgstr ""

#. module: base_location_nuts
#: model:ir.actions.act_window,help:base_location_nuts.res_partner_nuts_action
msgid ""
"You must click at import wizard to populate NUTS items\n"
" in Odoo database in:\n"
" Sales &gt; Configuration &gt; Address Book &gt; Localization &gt; Import NUTS 2013"
msgstr ""
Loading