Skip to content

Commit

Permalink
Merge PR #196 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by yajo
  • Loading branch information
OCA-git-bot committed Apr 22, 2024
2 parents bce4fad + 471c801 commit b961d29
Show file tree
Hide file tree
Showing 19 changed files with 1,367 additions and 0 deletions.
134 changes: 134 additions & 0 deletions l10n_eu_nace/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
================================
European NACE partner categories
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9f77d1967af0b73295197a5b1c09c525d8a7087663e15203cbb50be777e11ea5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fcommunity--data--files-lightgray.png?logo=github
:target: https://github.com/OCA/community-data-files/tree/16.0/l10n_eu_nace
:alt: OCA/community-data-files
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/community-data-files-16-0/community-data-files-16-0-l10n_eu_nace
: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/community-data-files&target_branch=16.0
:alt: Try me on Runboat

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

This module imports the NACE rev. 2 classification
categories as partner categories in 23 languages, courtesy of the EU.

The *Statistical Classification of Economic Activities in the European Community*
commonly referred to as NACE, is a European industry standard classification
system using a 6 digit code.
NACE is equivalent to the SIC and NAICS system:
* Standard Industrial Classification
* North American Industry Classification System.

This module is a rewrite of the older community module "partner_nace" from
the former `extra-addons` repository of Odoo v5 (called OpenERP at the time).

**Table of contents**

.. contents::
:local:

Usage
=====

Once this module is installed, you can assign NACE categories to your partners
by simply adding the corresponding category in the partner's form.

Obtaining updated data
======================
The data is imported from the new NACE Rev. 2 classification, which is hosted in
ShowVoc. This is a new platform that replaces the old Eurostat RAMON service and
uses SPARQL to retrieve the data.

If you want to import or update the data, you can do so by running the Import
NACE Wizard. This will search for all active languages in Odoo and import the
data for each one. If you activate a new language, remember to run this wizard
again.

1. Go to "Contacts" > "Configuration" > "Import NACE industries"
2. Click on the "Import NACE" button.

This might take a minute or so depending on the number of languages and the
speed of your connection.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/community-data-files/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/community-data-files/issues/new?body=module:%20l10n_eu_nace%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
~~~~~~~

* Numérigraphe SARL
* Sistheo

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

* Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
* Sistheo
* data files courtesy of the European Union
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
* `Tecnativa <https://www.tecnativa.com>`_:

* Jairo Llopis
* Ernesto Tejeda
* Abraham Anes <abrahamanes@gmail.com>
* Eduardo López (`Moduon <https://www.moduon.es/>`__)

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-yajo| image:: https://github.com/yajo.png?size=40px
:target: https://github.com/yajo
:alt: yajo
.. |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-yajo| |maintainer-edlopen|

This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/16.0/l10n_eu_nace>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_eu_nace/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
21 changes: 21 additions & 0 deletions l10n_eu_nace/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2011 Numérigraphe SARL.
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "European NACE partner categories",
"version": "16.0.1.0.0",
"author": "Numérigraphe SARL, Sistheo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/community-data-files",
"category": "Localization",
"data": [
"security/ir.model.access.csv",
"wizard/res_partner_industry_eu_nace_wizard_view.xml",
],
"maintainers": ["rafaelbn", "yajo", "edlopen"],
"depends": ["partner_industry_secondary"],
"installable": True,
"license": "AGPL-3",
}
88 changes: 88 additions & 0 deletions l10n_eu_nace/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_eu_nace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-19 08:51+0000\n"
"PO-Revision-Date: 2024-04-19 10:53+0200\n"
"Last-Translator: Eduardo López <elp@moduon.team>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.2\n"

#. module: l10n_eu_nace
#: model_terms:ir.ui.view,arch_db:l10n_eu_nace.partner_industry_nace_wizard_view_form
msgid "Cancel"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__create_date
msgid "Created on"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__id
msgid "ID"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.actions.act_window,name:l10n_eu_nace.res_partner_nace_import_act_window
#: model:ir.ui.menu,name:l10n_eu_nace.res_partner_nace_import_menu
#: model_terms:ir.ui.view,arch_db:l10n_eu_nace.partner_industry_nace_wizard_view_form
msgid "Import NACE industries"
msgstr "Importar industrias NACE"

#. module: l10n_eu_nace
#: model_terms:ir.ui.view,arch_db:l10n_eu_nace.partner_industry_nace_wizard_view_form
msgid ""
"Import NACE industries from ShowVoc API. This will\n"
" create new industries or update existing ones with their\n"
" translations for all active languages in the system."
msgstr ""
"Importar industrias NACE del ShowVoc API. Esto\n"
" creará nuevas industrias o actualizará aquéllas con su\n"
" traducción para todos los idiomas activos en el sistema."

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: l10n_eu_nace
#. odoo-python
#: code:addons/l10n_eu_nace/wizard/res_partner_industry_eu_nace_wizard.py:0
#, python-format
msgid "Partner Industries by EU NACE"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model,name:l10n_eu_nace.model_res_partner_industry_eu_nace_wizard
msgid "Partner Industry by EU NACE Wizard"
msgstr ""
63 changes: 63 additions & 0 deletions l10n_eu_nace/i18n/l10n_eu_nace.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_eu_nace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-15 16:09+0000\n"
"PO-Revision-Date: 2024-04-15 16:09+0000\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_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__create_date
msgid "Created on"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__id
msgid "ID"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.actions.act_window,name:l10n_eu_nace.res_partner_nace_import_act_window
#: model:ir.ui.menu,name:l10n_eu_nace.res_partner_nace_import_menu
#: model_terms:ir.ui.view,arch_db:l10n_eu_nace.partner_industry_nace_wizard_view_form
msgid "Import NACE industries"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model.fields,field_description:l10n_eu_nace.field_res_partner_industry_eu_nace_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: l10n_eu_nace
#: model:ir.model,name:l10n_eu_nace.model_res_partner_industry_eu_nace_wizard
msgid "Partner Industry by EU NACE Wizard"
msgstr ""
10 changes: 10 additions & 0 deletions l10n_eu_nace/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
* Sistheo
* data files courtesy of the European Union
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
* `Tecnativa <https://www.tecnativa.com>`_:

* Jairo Llopis
* Ernesto Tejeda
* Abraham Anes <abrahamanes@gmail.com>
* Eduardo López (`Moduon <https://www.moduon.es/>`__)
12 changes: 12 additions & 0 deletions l10n_eu_nace/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This module imports the NACE rev. 2 classification
categories as partner categories in 23 languages, courtesy of the EU.

The *Statistical Classification of Economic Activities in the European Community*
commonly referred to as NACE, is a European industry standard classification
system using a 6 digit code.
NACE is equivalent to the SIC and NAICS system:
* Standard Industrial Classification
* North American Industry Classification System.

This module is a rewrite of the older community module "partner_nace" from
the former `extra-addons` repository of Odoo v5 (called OpenERP at the time).
19 changes: 19 additions & 0 deletions l10n_eu_nace/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Once this module is installed, you can assign NACE categories to your partners
by simply adding the corresponding category in the partner's form.

Obtaining updated data
======================
The data is imported from the new NACE Rev. 2 classification, which is hosted in
ShowVoc. This is a new platform that replaces the old Eurostat RAMON service and
uses SPARQL to retrieve the data.

If you want to import or update the data, you can do so by running the Import
NACE Wizard. This will search for all active languages in Odoo and import the
data for each one. **If you activate a new language, remember to run this wizard
again.**

1. Go to "Contacts" > "Configuration" > "Import NACE industries"
2. Click on the "Import NACE" button.

This might take a minute or so depending on the number of languages and the
speed of your connection.
3 changes: 3 additions & 0 deletions l10n_eu_nace/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_res_partner_industry_eu_nace_wizard_user,res.partner.industry.eu.nace.wizard.user,model_res_partner_industry_eu_nace_wizard,base.group_user,1,0,0,0
access_res_partner_industry_eu_nace_wizard_manager,res.partner.industry.eu.nace.wizard.manager,model_res_partner_industry_eu_nace_wizard,base.group_system,1,1,1,1
Binary file added l10n_eu_nace/static/description/icon.png
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 b961d29

Please sign in to comment.