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

[18.0][MIG] l10n_eu_product_adr_dangerous_goods: Migration to 18.0 #211

Open
wants to merge 8 commits into
base: 18.0
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions checklog-odoo.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[checklog-odoo]
ignore=
WARNING.*0 failed, 0 error\(s\).*
97 changes: 97 additions & 0 deletions l10n_eu_product_adr_dangerous_goods/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
===================================
l10n Eu Product Adr Dangerous Goods
===================================

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

.. |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_dangerous_goods
: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_dangerous_goods
: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|

Adds a few utility models and records to the l10n_eu_product_adr module.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

- rename models, prefix them with adr. as it is done in
l10n_eu_product_adr

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_dangerous_goods%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
-------

* Camptocamp

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

- Matthieu Méquignon <[email protected]>
- Do Anh Duy <[email protected]>

Other credits
-------------

The migration of this module from 14.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.

.. |maintainer-mmequignon| image:: https://github.com/mmequignon.png?size=40px
:target: https://github.com/mmequignon
:alt: mmequignon

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

|maintainer-mmequignon|

This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/18.0/l10n_eu_product_adr_dangerous_goods>`_ 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_product_adr_dangerous_goods/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions l10n_eu_product_adr_dangerous_goods/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "l10n Eu Product Adr Dangerous Goods",
"version": "18.0.1.0.0",
"category": "Inventory/Delivery",
"website": "https://github.com/OCA/community-data-files",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["mmequignon"],
"license": "AGPL-3",
"installable": True,
"auto_install": False,
"depends": ["l10n_eu_product_adr"],
"data": [
# data
"data/utility_models.xml",
# security
"security/ir.model.access.csv",
# views
"views/product_product.xml",
],
}
112 changes: 112 additions & 0 deletions l10n_eu_product_adr_dangerous_goods/data/utility_models.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">

<!--storage classes-->
<record id="storage_class_1" model="storage.class">
<field name="name">LK 2</field>
</record>
<record id="storage_class_2" model="storage.class">
<field name="name">LK 3</field>
</record>
<record id="storage_class_3" model="storage.class">
<field name="name">LK 4.1</field>
</record>
<record id="storage_class_4" model="storage.class">
<field name="name">LK 4.2</field>
</record>
<record id="storage_class_5" model="storage.class">
<field name="name">LK 4.3</field>
</record>
<record id="storage_class_6" model="storage.class">
<field name="name">LK 5</field>
</record>
<record id="storage_class_7" model="storage.class">
<field name="name">LK 6.1</field>
</record>
<record id="storage_class_8" model="storage.class">
<field name="name">LK 8</field>
</record>
<record id="storage_class_9" model="storage.class">
<field name="name">LK 10,12</field>
</record>
<record id="storage_class_10" model="storage.class">
<field name="name">LK 11,13</field>
</record>

<!--packaging types-->
<record id="packaging_type_1" model="packaging.type">
<field name="name">Bottle</field>
</record>
<record id="packaging_type_2" model="packaging.type">
<field name="name">Canister</field>
</record>
<record id="packaging_type_3" model="packaging.type">
<field name="name">Cartridge</field>
</record>
<record id="packaging_type_4" model="packaging.type">
<field name="name">Box</field>
</record>
<record id="packaging_type_5" model="packaging.type">
<field name="name">Bag</field>
</record>
<record id="packaging_type_6" model="packaging.type">
<field name="name">Spray</field>
</record>
<record id="packaging_type_7" model="packaging.type">
<field name="name">Can</field>
</record>
<record id="packaging_type_8" model="packaging.type">
<field name="name">Tube</field>
</record>

<!--storage temps-->
<record id="storage_temp_1" model="storage.temp">
<field name="name">to 25°C</field>
</record>
<record id="storage_temp_2" model="storage.temp">
<field name="name">over 25°C</field>
</record>
<record id="storage_temp_3" model="storage.temp">
<field name="name">to 30°C</field>
</record>


<!--wgk classes-->
<record id="wgk_class_1" model="wgk.class">
<field name="name">WGK 1</field>
</record>
<record id="wgk_class_2" model="wgk.class">
<field name="name">WGK 2</field>
</record>
<record id="wgk_class_3" model="wgk.class">
<field name="name">WGK 3</field>
</record>
<record id="wgk_class_4" model="wgk.class">
<field name="name">WGK A</field>
</record>
<record id="wgk_class_5" model="wgk.class">
<field name="name">WGK B</field>
</record>

<!--limited amounts-->
<record id="limited_amount_1" model="limited.amount">
<field name="name">LQ (Limited Quantity)</field>
</record>
<record id="limited_amount_2" model="limited.amount">
<field name="name">DG (Dangerous Goods)</field>
</record>

<!--dangerous uom-->
<record id="dangerous_uom_1" model="dangerous.uom">
<field name="name">l (Liter)</field>
</record>
<record id="dangerous_uom_2" model="dangerous.uom">
<field name="name">kg (Kilogramm)</field>
</record>
<record id="dangerous_uom_3" model="dangerous.uom">
<field name="name">g (Gramm)</field>
</record>

</odoo>
Loading
Loading