Skip to content

Commit

Permalink
Merge PR #334 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Feb 24, 2023
2 parents dc1b946 + 4b9c63c commit 391ae65
Show file tree
Hide file tree
Showing 26 changed files with 1,251 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/shopfloor_dangerous_goods/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
6 changes: 6 additions & 0 deletions setup/shopfloor_dangerous_goods_mobile/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
86 changes: 86 additions & 0 deletions shopfloor_dangerous_goods/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
=========================
Shopfloor Dangerous Goods
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/13.0/shopfloor_dangerous_goods
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-13-0/wms-13-0-shopfloor_dangerous_goods
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/285/13.0
:alt: Try me on Runbot

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

This is a glue module between `shopfloor` and `l10n_eu_product_adr`

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/wms/issues/new?body=module:%20shopfloor_dangerous_goods%0Aversion:%2013.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 <matthieu.mequignon@camptocamp.com>

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/wms <https://github.com/OCA/wms/tree/13.0/shopfloor_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 shopfloor_dangerous_goods/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import actions
21 changes: 21 additions & 0 deletions shopfloor_dangerous_goods/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Shopfloor Dangerous Goods",
"summary": "Glue Module Between Shopfloor and Stock Dangerous Goods",
"version": "14.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["mmequignon"],
"license": "AGPL-3",
"application": True,
"depends": [
"shopfloor",
# OCA/stock-logistics-workflow
"stock_dangerous_goods",
],
"data": [],
}
2 changes: 2 additions & 0 deletions shopfloor_dangerous_goods/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import data
from . import schema
21 changes: 21 additions & 0 deletions shopfloor_dangerous_goods/actions/data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)


from odoo.addons.component.core import Component


class DataAction(Component):
_inherit = "shopfloor.data.action"

@property
def _move_line_parser(self):
res = super()._move_line_parser
res.append("has_lq_products")
return res

@property
def _package_parser(self):
res = super()._package_parser
res.append("has_lq_products")
return res
28 changes: 28 additions & 0 deletions shopfloor_dangerous_goods/actions/schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo.addons.component.core import Component


class ShopfloorSchemaAction(Component):

_inherit = "shopfloor.schema.action"

def move_line(self, with_packaging=False, with_picking=False):
res = super().move_line(
with_packaging=with_packaging, with_picking=with_picking
)
res["has_lq_products"] = {
"type": "boolean",
"nullable": False,
"required": False,
}
return res

def package(self, with_packaging=False):
res = super().package(with_packaging=with_packaging)
res["has_lq_products"] = {
"type": "boolean",
"nullable": False,
"required": False,
}
return res
1 change: 1 addition & 0 deletions shopfloor_dangerous_goods/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
1 change: 1 addition & 0 deletions shopfloor_dangerous_goods/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a glue module between `shopfloor` and `l10n_eu_product_adr`
Loading

0 comments on commit 391ae65

Please sign in to comment.