Skip to content

Commit

Permalink
Merge PR #163 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by tv-openbig
  • Loading branch information
OCA-git-bot committed Jul 15, 2024
2 parents 402356c + 939c814 commit 9ab1d06
Show file tree
Hide file tree
Showing 16 changed files with 778 additions and 0 deletions.
117 changes: 117 additions & 0 deletions l10n_de_location_nuts/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
=======================
NUTS Regions for German
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:251c5d9787e1eec9e54a095c5649991a8545f7ef8f6fe63e232417e5b314e67e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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%2Fl10n--germany-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-germany/tree/16.0/l10n_de_location_nuts
:alt: OCA/l10n-germany
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-germany-16-0/l10n-germany-16-0-l10n_de_location_nuts
: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/l10n-germany&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to relate German state NUTS level 2 locations with the
German states defined by localization.

* German states (NUTS level 2) related with Partner State

**Table of contents**

.. contents::
:local:

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

After installation, you must click at import wizard to populate NUTS items
in Odoo database in:
Contacts > Configuration > Import NUTS 2024

This wizard will download from Europe ShowVoc 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.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-germany/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/l10n-germany/issues/new?body=module:%20l10n_de_location_nuts%0Aversion:%2016.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* Antonio Espinosa <[email protected]>
* Rafael Blasco <[email protected]>
* Jairo Llopis <[email protected]>
* David Vidal <[email protected]>
* Rami Alwafaie <[email protected]>
* Alexandre Díaz <[email protected]>
* Foram Shah <[email protected]>
* Eduardo López <[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.

.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn
.. |maintainer-edlopen| image:: https://github.com/edlopen.png?size=40px
:target: https://github.com/edlopen
:alt: edlopen

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rafaelbn| |maintainer-edlopen|

This module is part of the `OCA/l10n-germany <https://github.com/OCA/l10n-germany/tree/16.0/l10n_de_location_nuts>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions l10n_de_location_nuts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2015 Tecnativa - Antonio Espinosa
# Copyright 2015 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import wizard
from .hooks import post_init_hook
21 changes: 21 additions & 0 deletions l10n_de_location_nuts/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2015 Tecnativa - Antonio Espinosa
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2015 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "NUTS Regions for German",
"summary": "NUTS specific options for German",
"version": "16.0.1.0.0",
"category": "Localisation/Europe",
"website": "https://github.com/OCA/l10n-germany",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"depends": [
"base_location_nuts",
],
"post_init_hook": "post_init_hook",
"installable": True,
"maintainers": ["rafaelbn", "edlopen"],
}
23 changes: 23 additions & 0 deletions l10n_de_location_nuts/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2015 Tecnativa - Antonio Espinosa
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2015 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import logging

from odoo import SUPERUSER_ID, api

_logger = logging.getLogger(__name__)


def post_init_hook(cr, registry):
"""Define German specific configuration in res.country."""
with api.Environment.manage():
env = api.Environment(cr, SUPERUSER_ID, {})
germany = env.ref("base.de")
_logger.info("Setting Germany NUTS configuration")
germany.write(
{
"state_level": 2,
}
)
37 changes: 37 additions & 0 deletions l10n_de_location_nuts/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_de_location_nuts
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-11 16:16+0000\n"
"PO-Revision-Date: 2015-06-11 16:16+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import__id
msgid "ID"
msgstr ""

#. module: l10n_de_location_nuts
#: model:ir.model,name:l10n_de_location_nuts.model_nuts_import
msgid "Import NUTS items from European ShowVoc service"
msgstr "Importar regiones NUTS desde el servicio europeo ShowVoc"

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import____last_update
msgid "Last Modified on"
msgstr ""
34 changes: 34 additions & 0 deletions l10n_de_location_nuts/i18n/l10n_de_location_nuts.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_de_location_nuts
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import__id
msgid "ID"
msgstr ""

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

#. module: l10n_de_location_nuts
#: model:ir.model.fields,field_description:l10n_de_location_nuts.field_nuts_import____last_update
msgid "Last Modified on"
msgstr ""
9 changes: 9 additions & 0 deletions l10n_de_location_nuts/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
After installation, you must click at import wizard to populate NUTS items
in Odoo database in:
Contacts > Configuration > Import NUTS 2024

This wizard will download from Europe ShowVoc 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.
8 changes: 8 additions & 0 deletions l10n_de_location_nuts/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* Antonio Espinosa <[email protected]>
* Rafael Blasco <[email protected]>
* Jairo Llopis <[email protected]>
* David Vidal <[email protected]>
* Rami Alwafaie <[email protected]>
* Alexandre Díaz <[email protected]>
* Foram Shah <[email protected]>
* Eduardo López <[email protected]>
4 changes: 4 additions & 0 deletions l10n_de_location_nuts/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module allows to relate German state NUTS level 2 locations with the
German states defined by localization.

* German states (NUTS level 2) related with Partner State
3 changes: 3 additions & 0 deletions l10n_de_location_nuts/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9ab1d06

Please sign in to comment.