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

[16.0][MIG] l10n_eu_nace new ShowVoc integration #196

Merged
merged 45 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
18bf550
[ADD] l10n_eu_nace: add European Union statistical partner categories
Jan 4, 2012
57fbeb4
[IMP] l10n_eu_nace: let users search for NACE codes ommiting the "."
Feb 1, 2012
d9b648b
[REF] Cosmetics
Feb 1, 2012
51cbdfb
[IMP] l10n_eu_nace: generate .pot file along with translations
Feb 15, 2012
c97b682
[FIX] l10n_eu_nace used country codes instead of language codes in tr…
Feb 15, 2012
5338ede
[IMP] Update to v7.0 coding standard
Mar 25, 2014
50cc24f
[IMP] PEP8
Mar 25, 2014
be95bea
move addons to __unported__
gurneyalex Aug 22, 2014
30e9237
[IMP] ported l10n_eu_nace to v8
Mar 6, 2015
0c1c7b7
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
a2d7dd6
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
13bb0f4
Port l10n_eu_nace to v9
lbelorgey Oct 30, 2015
d91c1cd
Migrate to new api
lbelorgey Oct 30, 2015
2215ffd
Finalize migration to new api
lbelorgey Oct 31, 2015
dab8f66
Fix pep8
lbelorgey Oct 31, 2015
dec115e
remove +x flag on partner.py
gurneyalex Dec 16, 2015
76d7a49
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
aa4ccb9
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
2cdc575
[MIG] l10n_eu_nace : Migrated to 10.0
mayjo79 Dec 1, 2016
4c87264
[FIX][l10n_eu_nace] Add missing languages.
yajo Dec 14, 2016
0c7d07f
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
d5c7b94
[MIG] - migration l10n_eu_nace to 12.0
sbejaoui Dec 28, 2018
eb908f5
[12.0][IMP] - split partner tags and nace code
sbejaoui Sep 23, 2019
5a4f160
[FIX] - use computed name for complete name
sbejaoui Jun 9, 2020
2ca2c55
[IMP] - improve migration script
sbejaoui Jun 24, 2020
cc5756b
[IMP] - make short name as default
sbejaoui Jun 25, 2020
d07a9b7
[RMV] - remove broken files
sbejaoui Jun 25, 2020
fc654a8
[IMP] l10n_eu_nace: add secondary
Jun 25, 2020
36b2d9d
FIX : Bad type in pre migration with boolean attribute
flotho Aug 7, 2020
2844157
FIX Pylint
flotho Aug 21, 2021
4a61330
FIX Pylint
flotho Aug 21, 2021
cfeba13
[IMP] l10n_eu_nace: black, isort, prettier
Feb 7, 2022
bc57c64
[MIG] l10n_eu_nace: Migration to 14.0
Feb 7, 2022
441f613
[UPD] Update l10n_eu_nace.pot
oca-travis Feb 8, 2022
969a448
[UPD] README.rst
OCA-git-bot Feb 8, 2022
a20e482
Added translation using Weblate (Croatian)
badbole Aug 22, 2022
204934a
Translated using Weblate (French)
klodr Sep 13, 2022
3015602
[UPD] README.rst
OCA-git-bot Sep 3, 2023
a1e91ba
Update translation files
weblate Oct 9, 2023
015e087
[IMP] l10n_eu_nace: pre-commit stuff
Abranes Oct 28, 2023
1ef031a
[16.0][MIG] l10n_eu_nace: Migration to 16.0
Abranes Oct 28, 2023
f141203
[16.0][MIG] l10n_eu_nace new Showvoc integration
edlopen Mar 8, 2024
7c8708d
Merge branch '16.0' into 16.0-mig-l10n_eu_nace
edlopen Apr 16, 2024
42e2788
[16.0][MIG] l10n_ue_nace PR upgrades
edlopen Apr 19, 2024
471c801
Update l10n_eu_nace/readme/USAGE.rst
edlopen Apr 19, 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
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) <[email protected]>
* Sistheo
* data files courtesy of the European Union
* Souheil Bejaoui <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:

* Jairo Llopis
* Ernesto Tejeda
* Abraham Anes <[email protected]>
* 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 <[email protected]>
# Copyright 2017 David Vidal <[email protected]>
# 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 <[email protected]>\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) <[email protected]>
* Sistheo
* data files courtesy of the European Union
* Souheil Bejaoui <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:

* Jairo Llopis
* Ernesto Tejeda
* Abraham Anes <[email protected]>
* 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.
edlopen marked this conversation as resolved.
Show resolved Hide resolved

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
Loading