Skip to content

Commit 9b8bc45

Browse files
committed
Merge PR #1215 into 16.0
Signed-off-by jbaudoux
2 parents ca2c7db + 76487e5 commit 9b8bc45

30 files changed

Lines changed: 1586 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../shopfloor_reception_add_packaging
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../shopfloor_reception_add_packaging_mobile
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
=================================
6+
Shopfloor Reception Add Packaging
7+
=================================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:a9a20aa50318777bd2e7b82a21bff19748ce8fc4fde4ec225400f4323de7db4f
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwms-lightgray.png?logo=github
24+
:target: https://github.com/OCA/wms/tree/16.0/shopfloor_reception_add_packaging
25+
:alt: OCA/wms
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor_reception_add_packaging
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/wms&target_branch=16.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
Enables to add a new packaging during a reception in Shopfloor.
36+
37+
**Table of contents**
38+
39+
.. contents::
40+
:local:
41+
42+
Bug Tracker
43+
===========
44+
45+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/issues>`_.
46+
In case of trouble, please check there if your issue has already been reported.
47+
If you spotted it first, help us to smash it by providing a detailed and welcomed
48+
`feedback <https://github.com/OCA/wms/issues/new?body=module:%20shopfloor_reception_add_packaging%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
49+
50+
Do not contact contributors directly about support or help with technical issues.
51+
52+
Credits
53+
=======
54+
55+
Authors
56+
-------
57+
58+
* ACSONE SA/NV
59+
60+
Contributors
61+
------------
62+
63+
- Nicolas Delbovier nicolas.delbovier@acsone.eu (https://www.acsone.eu/)
64+
65+
Maintainers
66+
-----------
67+
68+
This module is maintained by the OCA.
69+
70+
.. image:: https://odoo-community.org/logo.png
71+
:alt: Odoo Community Association
72+
:target: https://odoo-community.org
73+
74+
OCA, or the Odoo Community Association, is a nonprofit organization whose
75+
mission is to support the collaborative development of Odoo features and
76+
promote its widespread use.
77+
78+
This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/16.0/shopfloor_reception_add_packaging>`_ project on GitHub.
79+
80+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import models
2+
from .hooks import post_init_hook, uninstall_hook
3+
from . import actions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2026 ACSONE SA/NV
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Shopfloor Reception Add Packaging",
6+
"summary": """Enables to add a packaging during Reception scenario in Shopfloor.""",
7+
"version": "16.0.1.0.0",
8+
"license": "AGPL-3",
9+
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/wms",
11+
"depends": ["shopfloor_reception", "stock_storage_type"],
12+
"data": [
13+
"views/shopfloor_menu.xml",
14+
],
15+
"demo": [],
16+
"post_init_hook": "post_init_hook",
17+
"uninstall_hook": "uninstall_hook",
18+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import data
2+
from . import message
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2026 ACSONE SA (http://www.camptocamp.com)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo.addons.component.core import Component
5+
from odoo.addons.shopfloor_base.utils import ensure_model
6+
7+
8+
class DataAction(Component):
9+
_inherit = "shopfloor.data.action"
10+
11+
@ensure_model("product.packaging.level")
12+
def packaging_level(self, record, **kw):
13+
return self._jsonify(record, self._simple_record_parser(), **kw)
14+
15+
def packaging_levels(self, record, **kw):
16+
return self.packaging_level(record, multi=True)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2026 ACSONE SA/NV (https://www.acsone.eu)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo import _
5+
6+
from odoo.addons.component.core import Component
7+
8+
9+
class MessageAction(Component):
10+
_inherit = "shopfloor.message.action"
11+
12+
def new_packaging_created(self, packaging):
13+
return {
14+
"message_type": "success",
15+
"body": _("Packaging '{}' created.").format(packaging.name),
16+
}

0 commit comments

Comments
 (0)