-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by simahawk
- Loading branch information
Showing
68 changed files
with
106,254 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
=================== | ||
ADR Dangerous Goods | ||
=================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:40775d25f26e60aa3a640ff01e854121acb7e0a686634b006b1e0f76ab45709e | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/18.0/l10n_eu_product_adr | ||
: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-l10n_eu_product_adr | ||
: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 addon adds possibility to mark products with dangerous class due to | ||
European Agreement concerning the International Carriage of Dangerous | ||
Goods by Road (ADR) | ||
|
||
If your products contain dangerous product or waste you can link the | ||
relevant ADR goods to each product. | ||
|
||
Based on the dangerous goods classes and the product quantities or | ||
weights, the picking will show the number of ADR points on the Other | ||
Info tab. | ||
|
||
Read more https://en.wikipedia.org/wiki/ADR_(treaty) Unece standards | ||
https://unece.org/transportdangerous-goods/adr-2021-files | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
On the product form, you can mark a product as dangerous. That will | ||
enable a new tab on the product form's notebook on which you can select | ||
the dangerous goods that applies to this particular product, out of a | ||
list of dangerous goods that represents Table A from chapter 3 of the | ||
ADR specifications document. | ||
|
||
It is possible to specify a different, or no goods per product variant. | ||
|
||
The data in this module is generated based on a spreadsheet from | ||
https://cepa.be. This spreadsheet, just like the specifications | ||
themselves sometimes contain multiple options for each dangerous good, | ||
or additional restrictions that apply. That complexity is not encoded in | ||
the data in this module. For each dangerous goods that you configure on | ||
the products in your database, you should verify the correctness of the | ||
data against the latest version of the specifications and in case of | ||
additional restrictions or multiple options for the dangerous goods you | ||
should configure the goods according to the situation in your warehouse. | ||
You can access the configuration of the dangerous goods using menu | ||
*Inventory -> Configuration -> Dangerous Goods*. | ||
|
||
The number of ADR points on the picking is based on the product weight | ||
field if it is filled in, or otherwise on the UoM quantity in the | ||
product's reference UoM (presumably Liter or Kilogram). | ||
|
||
This module defines an ADR user group and an ADR admin group. Membership | ||
of one of these groups is required to access the product tab with the | ||
ADR info. By default, all inventory users are added to the ADR user | ||
group. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
- Dangerous products may also have temperature control to track goods | ||
in stock and delivery | ||
- Allow an effective label selection for products in class 7, as all | ||
labels in that class may apply to all products (but not at the same | ||
time). | ||
- Update the data in this module beyond the 2019 version of the | ||
specifications | ||
|
||
Changelog | ||
========= | ||
|
||
14.0.1.0.0 (2021-05-04) | ||
----------------------- | ||
|
||
- [BREAKING] Gather dangerous goods attributes on a new model | ||
adr.goods, and replace all product attributes with a Many2one on this | ||
model. Remove all other unused or unclear attributes. | ||
- [ADD] XML data for the dangerous goods table from the 2019 edition, | ||
including translations in 3 languages. | ||
|
||
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_product_adr%0Aversion:%2018.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 | ||
------- | ||
|
||
* Opener B.V. | ||
* Camptocamp | ||
|
||
Contributors | ||
------------ | ||
|
||
- Stefan Rijnhart <[email protected]> | ||
- Vyshnevska Iryna <[email protected]> | ||
- Isaac Gallart <[email protected]> | ||
- Chau Le <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
Label images | ||
~~~~~~~~~~~~ | ||
|
||
SVG image files for ADR labels were retrieved from | ||
https://commons.wikimedia.org | ||
|
||
Dangerous goods data | ||
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Dangerous goods data extracted from spreadsheet retrieved from | ||
https://www.cepa.be/wp-content/uploads/ADR_2019_BijlageA_deel3_Tabel_A_EXCEL_FORMAAT.xlsx | ||
|
||
The migration of this module from 16.0 to 18.0 was financially supported | ||
by Camptocamp. | ||
|
||
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. | ||
|
||
This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/18.0/l10n_eu_product_adr>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2019 Camptocamp SA | ||
# Copyright 2021 Opener B.V. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) | ||
{ | ||
"name": "ADR Dangerous Goods", | ||
"summary": "Allows to set appropriate danger class and components", | ||
"version": "18.0.1.0.0", | ||
"category": "Inventory/Delivery", | ||
"website": "https://github.com/OCA/community-data-files", | ||
"author": "Opener B.V., Camptocamp, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": ["stock"], | ||
"development_status": "Beta", | ||
"data": [ | ||
"data/uom_uom.xml", | ||
"data/adr_class.xml", | ||
"data/adr_label.xml", | ||
"data/adr_packing_instruction.xml", | ||
"data/adr_goods.xml", | ||
"security/res_groups.xml", | ||
"security/ir.model.access.csv", | ||
"views/adr_class_views.xml", | ||
"views/adr_goods_views.xml", | ||
"views/adr_label_views.xml", | ||
"views/adr_packing_instruction_views.xml", | ||
"views/menu.xml", | ||
# NB. product template views need to come before product product views | ||
"views/product_template_views.xml", | ||
"views/product_product_views.xml", | ||
"views/stock_picking_views.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="adr_class_1" model="adr.class"> | ||
<field name="name">Explosives</field> | ||
<field name="code">1</field> | ||
</record> | ||
<record id="adr_class_2" model="adr.class"> | ||
<field | ||
name="name" | ||
>Gases, including compressed, liquified, and dissolved under pressure gases and vapors </field> | ||
<field name="code">2</field> | ||
</record> | ||
<record id="adr_class_2_1" model="adr.class"> | ||
<field name="name">Flammable gases</field> | ||
<field name="code">2.1</field> | ||
</record> | ||
<record id="adr_class_2_2" model="adr.class"> | ||
<field name="name">Non-toxic and non-flammable gases</field> | ||
<field name="code">2.2</field> | ||
</record> | ||
<record id="adr_class_2_3" model="adr.class"> | ||
<field name="name">Toxic gases</field> | ||
<field name="code">2.3</field> | ||
</record> | ||
<record id="adr_class_3" model="adr.class"> | ||
<field name="name">Flammable liquids</field> | ||
<field name="code">3</field> | ||
</record> | ||
<record id="adr_class_4_1" model="adr.class"> | ||
<field | ||
name="name" | ||
>Flammable solids, self-reactive substances, and solid desensitized explosives</field> | ||
<field name="code">4.1</field> | ||
</record> | ||
<record id="adr_class_4_2" model="adr.class"> | ||
<field name="name">Substances liable to spontaneous combustion</field> | ||
<field name="code">4.2</field> | ||
</record> | ||
<record id="adr_class_4_3" model="adr.class"> | ||
<field | ||
name="name" | ||
>Substances which, in contact with water, emit flammable gases</field> | ||
<field name="code">4.3</field> | ||
</record> | ||
<record id="adr_class_5_1" model="adr.class"> | ||
<field name="name">Oxidizing substances</field> | ||
<field name="code">5.1</field> | ||
</record> | ||
<record id="adr_class_5_2" model="adr.class"> | ||
<field name="name">Organic peroxides</field> | ||
<field name="code">5.2</field> | ||
</record> | ||
<record id="adr_class_6_1" model="adr.class"> | ||
<field name="name">Toxic substances</field> | ||
<field name="code">6.1</field> | ||
</record> | ||
<record id="adr_class_6_2" model="adr.class"> | ||
<field name="name">Infectious substances</field> | ||
<field name="code">6.2</field> | ||
</record> | ||
<record id="adr_class_7" model="adr.class"> | ||
<field name="name">Radioactive material</field> | ||
<field name="code">7</field> | ||
</record> | ||
<record id="adr_class_8" model="adr.class"> | ||
<field name="name">Corrosive substances</field> | ||
<field name="code">8</field> | ||
</record> | ||
<record id="adr_class_9" model="adr.class"> | ||
<field name="name">Miscellaneous dangerous substances and articles</field> | ||
<field name="code">9</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.