diff --git a/base_unece/README.rst b/base_unece/README.rst new file mode 100644 index 00000000..8fd44ccb --- /dev/null +++ b/base_unece/README.rst @@ -0,0 +1,104 @@ +========== +Base UNECE +========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:289329077c03d4b8165a8129a3dbc91ebe7a77ae819f4a871eb03a2938b01c6d + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-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/18.0/base_unece + :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-18-0/community-data-files-18-0-base_unece + :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=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the technical basis for the use of the code lists +standardized by the `United Nations Economic Commission for +Europe `__ (which has 56 members states in Europe, +America and Central Asia, cf +`Wikipedia `__. +These code lists are sometimes called UNCL (United Nations Code List). +UNECE has standardized code lists for many different things: units of +measure, payment means, modes of transport, packaging, taxes, etc.... + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +The configuration takes place in the menu *Settings > Technical > +Parameters > UNECE Code Lists*. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Akretion + +Contributors +------------ + +- Alexis de Lattre +- Levent Karakaş +- Pedro M. Baeza +- Andrea Stirpe +- Nhan Tran + +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-astirpe| image:: https://github.com/astirpe.png?size=40px + :target: https://github.com/astirpe + :alt: astirpe +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainers `__: + +|maintainer-astirpe| |maintainer-alexis-via| + +This module is part of the `OCA/community-data-files `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_unece/__init__.py b/base_unece/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/base_unece/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_unece/__manifest__.py b/base_unece/__manifest__.py new file mode 100644 index 00000000..fbd8e432 --- /dev/null +++ b/base_unece/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2016-2021 Akretion France (http://www.akretion.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +# @author Alexis de Lattre + +{ + "name": "Base UNECE", + "version": "18.0.1.0.0", + "category": "Tools", + "license": "LGPL-3", + "development_status": "Production/Stable", + "summary": "Base module for UNECE code lists", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["astirpe", "alexis-via"], + "website": "https://github.com/OCA/community-data-files", + "depends": ["base"], + "data": ["views/unece_code_list.xml", "security/ir.model.access.csv"], + "installable": True, +} diff --git a/base_unece/i18n/base_unece.pot b/base_unece/i18n/base_unece.pot new file mode 100644 index 00000000..ed806f82 --- /dev/null +++ b/base_unece/i18n/base_unece.pot @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "" diff --git a/base_unece/i18n/de.po b/base_unece/i18n/de.po new file mode 100644 index 00000000..50ca1522 --- /dev/null +++ b/base_unece/i18n/de.po @@ -0,0 +1,108 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-11-04 13:44+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Aktiv" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "Es gibt bereits einen UNECE-Code vom selben Typ." + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "Archiviert" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Erstellt von" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Erstellt am" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Beschreibung" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Anzeigename" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Gruppieren nach" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert von" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Bezeichnung" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Bezeichnung oder Code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Typ" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "UNECE-Code-Liste" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "UNECE-Nomenklatur" + +#~ msgid "Last Modified on" +#~ msgstr "Zuletzt geändert am" diff --git a/base_unece/i18n/es.po b/base_unece/i18n/es.po new file mode 100644 index 00000000..86bf9712 --- /dev/null +++ b/base_unece/i18n/es.po @@ -0,0 +1,108 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-08-02 12:09+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Activo" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "Ya existe un código CEPE (UNECE) del mismo tipo" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "Archivado" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Código" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Descripción" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Nombre a Mostrar" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Agrupado por" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Actualizado por última vez por" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Nombre" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Nombre o código" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Tipo" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "Listas de códigos de la CEPE (UNECE)" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "Nomenclaturas de la UNECE" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificación el" diff --git a/base_unece/i18n/fr.po b/base_unece/i18n/fr.po new file mode 100644 index 00000000..702f5b41 --- /dev/null +++ b/base_unece/i18n/fr.po @@ -0,0 +1,108 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-05 16:10+0000\n" +"Last-Translator: Alexis de Lattre \n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Actif" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "Un code UNECE du même type existe déjà" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "Archivé" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Description" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Regrouper par" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Nom" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Nom ou code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Type" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "Listes de codes UNECE" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "Nomenclatures UNECE" + +#~ msgid "Last Modified on" +#~ msgstr "Dernière modification le" diff --git a/base_unece/i18n/hr.po b/base_unece/i18n/hr.po new file mode 100644 index 00000000..7b0b2582 --- /dev/null +++ b/base_unece/i18n/hr.po @@ -0,0 +1,109 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-01-31 08:12+0000\n" +"Last-Translator: Bole \n" +"Language-Team: none\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Aktivan" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "UNECE šifra istog tipa već postoji" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "Arhivirano" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Šifra" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Kreirao" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Kreirano" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Opis" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Naziv" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Grupiraj po" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Zadnje ažurirano" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Zadnje ažurirano" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Naziv" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Naziv ili šifra" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Tip" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "Popis UNECE šifri" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "UNECE nomenklature" + +#~ msgid "Last Modified on" +#~ msgstr "Zadnje modificirano" diff --git a/base_unece/i18n/it.po b/base_unece/i18n/it.po new file mode 100644 index 00000000..2f157292 --- /dev/null +++ b/base_unece/i18n/it.po @@ -0,0 +1,105 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-03-05 12:07+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Attivo" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "Esiste già un codice UNECE dello stesso tipo" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "In archivio" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Codice" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Descrizione" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Raggruppa per" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Nome" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Nome o codice" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Tipo" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "Elenchi codici UNECE" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "Nomenclatura UNECE" diff --git a/base_unece/i18n/nl.po b/base_unece/i18n/nl.po new file mode 100644 index 00000000..2c4f7764 --- /dev/null +++ b/base_unece/i18n/nl.po @@ -0,0 +1,108 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_unece +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-04-23 19:47+0000\n" +"Last-Translator: Bosd \n" +"Language-Team: none\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__active +msgid "Active" +msgstr "Actief" + +#. module: base_unece +#: model:ir.model.constraint,message:base_unece.constraint_unece_code_list_type_code_uniq +msgid "An UNECE code of the same type already exists" +msgstr "Een UNECE code van hetzelfde tijpe bestaat al" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_form +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Archived" +msgstr "Gearchiveerd" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__code +msgid "Code" +msgstr "Code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_uid +msgid "Created by" +msgstr "Aangemaakt door" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__create_date +msgid "Created on" +msgstr "Aangemaakt op" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__description +msgid "Description" +msgstr "Omschrijving" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__display_name +msgid "Display Name" +msgstr "Weergavenaam" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Group By" +msgstr "Groeppeer op" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__id +msgid "ID" +msgstr "ID" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_uid +msgid "Last Updated by" +msgstr "Laatste update door" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__write_date +msgid "Last Updated on" +msgstr "Laatste update op" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__name +msgid "Name" +msgstr "Naam" + +#. module: base_unece +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Name or Code" +msgstr "Naam van de Code" + +#. module: base_unece +#: model:ir.model.fields,field_description:base_unece.field_unece_code_list__type +#: model_terms:ir.ui.view,arch_db:base_unece.unece_code_list_search +msgid "Type" +msgstr "Type" + +#. module: base_unece +#: model:ir.actions.act_window,name:base_unece.unece_code_list_action +#: model:ir.ui.menu,name:base_unece.unece_code_list_menu +msgid "UNECE Code Lists" +msgstr "UNECE Code Lijst" + +#. module: base_unece +#: model:ir.model,name:base_unece.model_unece_code_list +msgid "UNECE nomenclatures" +msgstr "" + +#~ msgid "Last Modified on" +#~ msgstr "Laatst gewijzigt op" diff --git a/base_unece/models/__init__.py b/base_unece/models/__init__.py new file mode 100644 index 00000000..47966f2f --- /dev/null +++ b/base_unece/models/__init__.py @@ -0,0 +1 @@ +from . import unece_code_list diff --git a/base_unece/models/unece_code_list.py b/base_unece/models/unece_code_list.py new file mode 100644 index 00000000..e05e1e5f --- /dev/null +++ b/base_unece/models/unece_code_list.py @@ -0,0 +1,46 @@ +# Copyright 2016-2021 Akretion France (http://www.akretion.com) +# @author: Alexis de Lattre +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). + +from odoo import api, fields, models + + +# There are so many UNCL that can be usefull in Odoo +# that it would be stupid to have one object for each UNCL +# because it would duplicate the python code, views, menu entries, ACL, etc... +# So I decided to have a single object with a type field +class UneceCodeList(models.Model): + _name = "unece.code.list" + _description = "UNECE nomenclatures" + _order = "type, code" + + code = fields.Char(required=True, copy=False) + name = fields.Char(required=True, copy=False) + type = fields.Selection([], required=True) + description = fields.Text() + active = fields.Boolean(default=True) + + _sql_constraints = [ + ( + "type_code_uniq", + "unique(type, code)", + "An UNECE code of the same type already exists", + ) + ] + + @api.depends("code", "name") + def _compute_display_name(self): + for entry in self: + entry.display_name = f"[{entry.code}] {entry.name}" + + # _rec_names_search = ['name', 'code'] doesn't give the result we want + # We want that, when you type an exact code, you get only that code + # Exemple : on UNECE Tax category, when you type "S", you should get only + # "[S] Standard rate" + @api.model + def _search_display_name(self, operator, value): + if value and operator == "ilike": + ids = list(self._search([("code", "=", value)])) + if ids: + return [("id", "in", ids)] + return super()._search_display_name(operator, value) diff --git a/base_unece/pyproject.toml b/base_unece/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/base_unece/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_unece/readme/CONFIGURE.md b/base_unece/readme/CONFIGURE.md new file mode 100644 index 00000000..01019210 --- /dev/null +++ b/base_unece/readme/CONFIGURE.md @@ -0,0 +1,2 @@ +The configuration takes place in the menu *Settings \> Technical \> +Parameters \> UNECE Code Lists*. diff --git a/base_unece/readme/CONTRIBUTORS.md b/base_unece/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..dfc5ae80 --- /dev/null +++ b/base_unece/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Alexis de Lattre \<\> +- Levent Karakaş +- Pedro M. Baeza +- Andrea Stirpe +- Nhan Tran \<\> diff --git a/base_unece/readme/DESCRIPTION.md b/base_unece/readme/DESCRIPTION.md new file mode 100644 index 00000000..883f0c30 --- /dev/null +++ b/base_unece/readme/DESCRIPTION.md @@ -0,0 +1,8 @@ +This module adds the technical basis for the use of the code lists +standardized by the [United Nations Economic Commission for +Europe](http://www.unece.org) (which has 56 members states in Europe, +America and Central Asia, cf +[Wikipedia](https://en.wikipedia.org/wiki/United_Nations_Economic_Commission_for_Europe). +These code lists are sometimes called UNCL (United Nations Code List). +UNECE has standardized code lists for many different things: units of +measure, payment means, modes of transport, packaging, taxes, etc.... diff --git a/base_unece/security/ir.model.access.csv b/base_unece/security/ir.model.access.csv new file mode 100644 index 00000000..5a425d15 --- /dev/null +++ b/base_unece/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_unece_code_list_user_read,Read access on unece.code.list to employees,model_unece_code_list,base.group_user,1,0,0,0 +access_unece_code_list_public_read,Read access on unece.code.list to public,model_unece_code_list,base.group_public,1,0,0,0 +access_unece_code_list_portal_read,Read access on unece.code.list to portal,model_unece_code_list,base.group_portal,1,0,0,0 +access_unece_code_list_full,Full access on unece.code.list to Settings group,model_unece_code_list,base.group_system,1,1,1,1 diff --git a/base_unece/static/description/icon.png b/base_unece/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/base_unece/static/description/icon.png differ diff --git a/base_unece/static/description/index.html b/base_unece/static/description/index.html new file mode 100644 index 00000000..463798d5 --- /dev/null +++ b/base_unece/static/description/index.html @@ -0,0 +1,442 @@ + + + + + +Base UNECE + + + +
+

Base UNECE

+ + +

Production/Stable License: LGPL-3 OCA/community-data-files Translate me on Weblate Try me on Runboat

+

This module adds the technical basis for the use of the code lists +standardized by the United Nations Economic Commission for +Europe (which has 56 members states in Europe, +America and Central Asia, cf +Wikipedia. +These code lists are sometimes called UNCL (United Nations Code List). +UNECE has standardized code lists for many different things: units of +measure, payment means, modes of transport, packaging, taxes, etc….

+

Table of contents

+ +
+

Configuration

+

The configuration takes place in the menu Settings > Technical > +Parameters > UNECE Code Lists.

+
+
+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainers:

+

astirpe alexis-via

+

This module is part of the OCA/community-data-files project on GitHub.

+

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

+
+
+
+ + diff --git a/base_unece/views/unece_code_list.xml b/base_unece/views/unece_code_list.xml new file mode 100644 index 00000000..68374243 --- /dev/null +++ b/base_unece/views/unece_code_list.xml @@ -0,0 +1,86 @@ + + + + + unece.code.list + +
+ + + + + + + + + + + + + + +
+
+
+ + unece.code.list + + + + + + + + + + + unece.code.list + + + + + + + + + + + + + + UNECE Code Lists + unece.code.list + list,form + {'unece_code_list_main_view': True} + + +