Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ addon | version | maintainers | summary
[company_sanitary_registry](company_sanitary_registry/) | 16.0.1.0.0 | | Sanitary Registry
[l10n_eu_nace](l10n_eu_nace/) | 16.0.1.1.0 | <a href='https://github.com/rafaelbn'><img src='https://github.com/rafaelbn.png' width='32' height='32' style='border-radius:50%;' alt='rafaelbn'/></a> <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> <a href='https://github.com/edlopen'><img src='https://github.com/edlopen.png' width='32' height='32' style='border-radius:50%;' alt='edlopen'/></a> | European NACE partner categories
[product_fao_fishing](product_fao_fishing/) | 16.0.1.0.1 | | Set fishing areas and capture technology
[product_packaging_unece](product_packaging_unece/) | 16.0.1.0.0 | <a href='https://github.com/sbejaoui'><img src='https://github.com/sbejaoui.png' width='32' height='32' style='border-radius:50%;' alt='sbejaoui'/></a> <a href='https://github.com/jbaudoux'><img src='https://github.com/jbaudoux.png' width='32' height='32' style='border-radius:50%;' alt='jbaudoux'/></a> | UNECE nomenclature for product packaging
[uom_unece](uom_unece/) | 16.0.1.3.0 | <a href='https://github.com/astirpe'><img src='https://github.com/astirpe.png' width='32' height='32' style='border-radius:50%;' alt='astirpe'/></a> <a href='https://github.com/alexis-via'><img src='https://github.com/alexis-via.png' width='32' height='32' style='border-radius:50%;' alt='alexis-via'/></a> | UNECE nomenclature for the units of measure

[//]: # (end addons)
Expand Down
94 changes: 94 additions & 0 deletions product_packaging_unece/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=======================
Product Packaging UNECE
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:aef28ea85236555eb3e04ec919f8d18e4821a4fc499fb6b7abbce219954c73f5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-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/product_packaging_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-16-0/community-data-files-16-0-product_packaging_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=16.0
:alt: Try me on Runboat

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

UNECE Rec 21 code set on the packaging level and propagated to related
product packaging to identify the packaging type.

**Table of contents**

.. contents::
:local:

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:%20product_packaging_unece%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
-------

* ACSONE SA/NV
* BCIM

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

- Souheil Bejaoui - ACSONE SA/NV souheil.bejaoui@acsone.eu
- Jacques-Etienne Baudoux - BCIM je@bcim.be

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

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

|maintainer-sbejaoui| |maintainer-jbaudoux|

This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/16.0/product_packaging_unece>`_ 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 product_packaging_unece/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions product_packaging_unece/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2026 ACSONE SA/NV
# Copyright 2026 BCIM
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Product Packaging UNECE",
"summary": """UNECE nomenclature for product packaging""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, BCIM, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/community-data-files",
"depends": ["product_packaging_level", "base_unece"],
"maintainers": ["sbejaoui", "jbaudoux"],
"data": [
"data/unece_code_list.xml",
"views/unece_code_list.xml",
"views/product_packaging_level.xml",
],
}
76 changes: 76 additions & 0 deletions product_packaging_unece/data/unece_code_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2026 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="0">

<record id="unece_packaging_bx" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">BX</field>
<field name="name">Box</field>
<field name="description">A container with flat sides</field>
</record>

<record id="unece_packaging_ct" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">CT</field>
<field name="name">Carton</field>
<field name="description">A lightweight box or container</field>
</record>

<record id="unece_packaging_cs" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">CS</field>
<field name="name">Case</field>
<field name="description">A container or box used for transport</field>
</record>

<record id="unece_packaging_bg" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">BG</field>
<field name="name">Bag</field>
<field name="description">A flexible container</field>
</record>

<record id="unece_packaging_pl" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">PL</field>
<field name="name">Pallet</field>
<field name="description">A platform used to transport goods</field>
</record>

<record id="unece_packaging_pk" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">PK</field>
<field name="name">Package</field>
<field name="description">A general packaging unit</field>
</record>

<record id="unece_packaging_cr" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">CR</field>
<field name="name">Crate</field>
<field name="description">A rigid container, often wooden</field>
</record>

<record id="unece_packaging_dr" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">DR</field>
<field name="name">Drum</field>
<field name="description">A cylindrical container</field>
</record>

<record id="unece_packaging_bo" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">BO</field>
<field name="name">Bottle</field>
<field name="description">A narrow-necked container</field>
</record>

<record id="unece_packaging_cy" model="unece.code.list">
<field name="type">packaging_type</field>
<field name="code">CY</field>
<field name="name">Cylinder</field>
<field name="description">A cylindrical container for gases or liquids</field>
</record>

</odoo>
62 changes: 62 additions & 0 deletions product_packaging_unece/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_packaging_unece
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-19 13:09+0000\n"
"PO-Revision-Date: 2026-03-19 13:09+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: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_product_packaging_level
msgid "Level management for product.packaging"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields.selection,name:product_packaging_unece.selection__unece_code_list__type__packaging_type
#: model_terms:ir.ui.view,arch_db:product_packaging_unece.unece_code_list_search
msgid "Packaging Types (UNECE Rec 21)"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,help:product_packaging_unece.field_product_packaging_level__unece_type_ids
#, fuzzy
msgid ""
"Select the Packaging Type Codes of the official nomenclature of the United "
"Nations Economic Commission for Europe (UNECE), DataElement Rec 21)"
msgstr ""
"Nomenclature standard de la Commission économique des Nations Unies pour "
"l'Europe (UNECE)."

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_unece_code_list__type
msgid "Type"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_product_packaging_level__unece_type_ids
msgid "UNECE Packaging Types"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_unece_code_list
msgid "UNECE nomenclatures"
msgstr ""

#~ msgid "Product Packaging"
#~ msgstr "Conditionnement des produits"

#~ msgid "UNECE Code"
#~ msgstr "Code UNECE"

#~ msgid "Update related packaging"
#~ msgstr "Mettre à jour les conditionnements liés"
48 changes: 48 additions & 0 deletions product_packaging_unece/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_packaging_unece
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\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"

#. module: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_product_packaging_level
msgid "Level management for product.packaging"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields.selection,name:product_packaging_unece.selection__unece_code_list__type__packaging_type
#: model_terms:ir.ui.view,arch_db:product_packaging_unece.unece_code_list_search
msgid "Packaging Types (UNECE Rec 21)"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,help:product_packaging_unece.field_product_packaging_level__unece_type_ids
msgid ""
"Select the Packaging Type Codes of the official nomenclature of the United "
"Nations Economic Commission for Europe (UNECE), DataElement Rec 21)"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_unece_code_list__type
msgid "Type"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_product_packaging_level__unece_type_ids
msgid "UNECE Packaging Types"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_unece_code_list
msgid "UNECE nomenclatures"
msgstr ""
47 changes: 47 additions & 0 deletions product_packaging_unece/i18n/product_packaging_unece.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_packaging_unece
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_product_packaging_level
msgid "Level management for product.packaging"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields.selection,name:product_packaging_unece.selection__unece_code_list__type__packaging_type
#: model_terms:ir.ui.view,arch_db:product_packaging_unece.unece_code_list_search
msgid "Packaging Types (UNECE Rec 21)"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,help:product_packaging_unece.field_product_packaging_level__unece_type_ids
msgid ""
"Select the Packaging Type Codes of the official nomenclature of the United "
"Nations Economic Commission for Europe (UNECE), DataElement Rec 21)"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_unece_code_list__type
msgid "Type"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model.fields,field_description:product_packaging_unece.field_product_packaging_level__unece_type_ids
msgid "UNECE Packaging Types"
msgstr ""

#. module: product_packaging_unece
#: model:ir.model,name:product_packaging_unece.model_unece_code_list
msgid "UNECE nomenclatures"
msgstr ""
2 changes: 2 additions & 0 deletions product_packaging_unece/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import product_packaging_level
from . import unece_code_list
18 changes: 18 additions & 0 deletions product_packaging_unece/models/product_packaging_level.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2026 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ProductPackagingLevel(models.Model):

_inherit = "product.packaging.level"

unece_type_ids = fields.Many2many(
comodel_name="unece.code.list",
string="UNECE Packaging Types",
domain=[("type", "=", "packaging_type")],
help="Select the Packaging Type Codes of the official "
"nomenclature of the United Nations Economic "
"Commission for Europe (UNECE), DataElement Rec 21)",
)
14 changes: 14 additions & 0 deletions product_packaging_unece/models/unece_code_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2026 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class UneceCodeList(models.Model):

_inherit = "unece.code.list"

type = fields.Selection(
selection_add=[("packaging_type", "Packaging Types (UNECE Rec 21)")],
ondelete={"packaging_type": "cascade"},
)
Loading
Loading