diff --git a/setup/shopfloor_reception_dock/odoo/addons/shopfloor_reception_dock b/setup/shopfloor_reception_dock/odoo/addons/shopfloor_reception_dock new file mode 120000 index 00000000000..d8f30a6cb2a --- /dev/null +++ b/setup/shopfloor_reception_dock/odoo/addons/shopfloor_reception_dock @@ -0,0 +1 @@ +../../../../shopfloor_reception_dock \ No newline at end of file diff --git a/setup/shopfloor_reception_dock/setup.py b/setup/shopfloor_reception_dock/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/shopfloor_reception_dock/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/shopfloor_reception_dock_mobile/odoo/addons/shopfloor_reception_dock_mobile b/setup/shopfloor_reception_dock_mobile/odoo/addons/shopfloor_reception_dock_mobile new file mode 120000 index 00000000000..287d7100f78 --- /dev/null +++ b/setup/shopfloor_reception_dock_mobile/odoo/addons/shopfloor_reception_dock_mobile @@ -0,0 +1 @@ +../../../../shopfloor_reception_dock_mobile \ No newline at end of file diff --git a/setup/shopfloor_reception_dock_mobile/setup.py b/setup/shopfloor_reception_dock_mobile/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/shopfloor_reception_dock_mobile/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/shopfloor_reception/demo/stock_picking_type_demo.xml b/shopfloor_reception/demo/stock_picking_type_demo.xml index 0279e0806fe..1d97e33dcdb 100644 --- a/shopfloor_reception/demo/stock_picking_type_demo.xml +++ b/shopfloor_reception/demo/stock_picking_type_demo.xml @@ -14,7 +14,7 @@ - internal + incoming diff --git a/shopfloor_reception_dock/README.rst b/shopfloor_reception_dock/README.rst new file mode 100644 index 00000000000..53c4eedbcf4 --- /dev/null +++ b/shopfloor_reception_dock/README.rst @@ -0,0 +1,106 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +========================= +Shopfloor Reception Docks +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:6bdb63880022f203aa922f444ddfa75bf13a8d9570b9ce07893c0cf7c446a773 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/16.0/shopfloor_reception_dock + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor_reception_dock + :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/wms&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Add docks info to shopfloor. + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +During reception, carrier trucks deposit goods across various physical +unloading docks. Because these goods are technically in transit or +sitting on an external dock, they have not yet been processed into the +system's internal ``stock.location``\ s. Consequently, they are +invisible to standard inventory tracking. + +Warehouse operators using the mobile ``shopfloor`` interface need to +know exactly which dock a specific picking or carrier truck is located +at to efficiently initiate the receiving. Without this visibility, +operators waste significant time searching the physical staging areas +for the correct pallets. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Nicolas Delbovier nicolas.delbovier@acsone.eu (https://www.acsone.eu/) + +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-jbaudoux| image:: https://github.com/jbaudoux.png?size=40px + :target: https://github.com/jbaudoux + :alt: jbaudoux +.. |maintainer-nicolas-delbovier-acsone| image:: https://github.com/nicolas-delbovier-acsone.png?size=40px + :target: https://github.com/nicolas-delbovier-acsone + :alt: nicolas-delbovier-acsone + +Current `maintainers `__: + +|maintainer-jbaudoux| |maintainer-nicolas-delbovier-acsone| + +This module is part of the `OCA/wms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/shopfloor_reception_dock/__init__.py b/shopfloor_reception_dock/__init__.py new file mode 100644 index 00000000000..cf850b590c6 --- /dev/null +++ b/shopfloor_reception_dock/__init__.py @@ -0,0 +1,2 @@ +from . import actions +from . import services diff --git a/shopfloor_reception_dock/__manifest__.py b/shopfloor_reception_dock/__manifest__.py new file mode 100644 index 00000000000..abb9c2e71b8 --- /dev/null +++ b/shopfloor_reception_dock/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Shopfloor Reception Docks", + "summary": """Add docks info to shopfloor""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/wms", + "maintainers": ["jbaudoux", "nicolas-delbovier-acsone"], + "depends": ["shopfloor_reception", "stock_picking_dock"], + "data": [], + "demo": [], +} diff --git a/shopfloor_reception_dock/actions/__init__.py b/shopfloor_reception_dock/actions/__init__.py new file mode 100644 index 00000000000..fe95ed969e3 --- /dev/null +++ b/shopfloor_reception_dock/actions/__init__.py @@ -0,0 +1,4 @@ +from . import data +from . import schema +from . import search +from . import message diff --git a/shopfloor_reception_dock/actions/data.py b/shopfloor_reception_dock/actions/data.py new file mode 100644 index 00000000000..2382a0ab554 --- /dev/null +++ b/shopfloor_reception_dock/actions/data.py @@ -0,0 +1,19 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + + +from odoo.addons.component.core import Component + + +class DataAction(Component): + _inherit = "shopfloor.data.action" + + @property + def _picking_parser(self): + res = super()._picking_parser + res += [("dock_ids:docks", self._dock_parser)] + return res + + @property + def _dock_parser(self): + return self._simple_record_parser() diff --git a/shopfloor_reception_dock/actions/message.py b/shopfloor_reception_dock/actions/message.py new file mode 100644 index 00000000000..558c3ca57b3 --- /dev/null +++ b/shopfloor_reception_dock/actions/message.py @@ -0,0 +1,27 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import _ + +from odoo.addons.component.core import Component + + +class MessageAction(Component): + _inherit = "shopfloor.message.action" + + def dock_no_assigned_picking(self, dock): + return { + "message_type": "error", + "body": _( + "No assigned transfers found for Dock: '%(dock_name)s'", + dock_name=dock.name, + ), + } + + def dock_pickings_filtered(self, dock): + return { + "message_type": "info", + "body": _( + "Transfers filtered by Dock: '%(dock_name)s'", + dock_name=dock.name, + ), + } diff --git a/shopfloor_reception_dock/actions/schema.py b/shopfloor_reception_dock/actions/schema.py new file mode 100644 index 00000000000..683d6156a68 --- /dev/null +++ b/shopfloor_reception_dock/actions/schema.py @@ -0,0 +1,17 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo.addons.component.core import Component + + +class ShopfloorSchemaAction(Component): + _inherit = "shopfloor.schema.action" + + def picking(self): + res = super().picking() + + res.update( + {"docks": self._schema_list_of(self._simple_record(), required=False)} + ) + + return res diff --git a/shopfloor_reception_dock/actions/search.py b/shopfloor_reception_dock/actions/search.py new file mode 100644 index 00000000000..66e19f54d3a --- /dev/null +++ b/shopfloor_reception_dock/actions/search.py @@ -0,0 +1,19 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo.addons.component.core import Component + + +class SearchAction(Component): + _inherit = "shopfloor.search.action" + + @property + def _barcode_type_handler(self): + res = super(SearchAction, self)._barcode_type_handler + res["dock"] = self.dock_from_scan + return res + + def dock_from_scan(self, barcode): + model = self.env["stock.dock"] + if not barcode: + return model.browse() + return model.search([("barcode", "=", barcode)], limit=1) diff --git a/shopfloor_reception_dock/readme/CONTEXT.md b/shopfloor_reception_dock/readme/CONTEXT.md new file mode 100644 index 00000000000..2ac7222817d --- /dev/null +++ b/shopfloor_reception_dock/readme/CONTEXT.md @@ -0,0 +1,4 @@ +During reception, carrier trucks deposit goods across various physical unloading docks. Because these goods are technically in transit or sitting on an external dock, they have not yet been processed into the system's internal `stock.location`s. Consequently, they are invisible to standard inventory tracking. + +Warehouse operators using the mobile `shopfloor` interface need to know exactly which dock a specific picking or carrier truck is located at to efficiently initiate the receiving. Without this visibility, operators waste significant time searching the physical staging areas for the correct pallets. + diff --git a/shopfloor_reception_dock/readme/CONTRIBUTORS.md b/shopfloor_reception_dock/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..e0604c970f9 --- /dev/null +++ b/shopfloor_reception_dock/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Nicolas Delbovier (https://www.acsone.eu/) \ No newline at end of file diff --git a/shopfloor_reception_dock/readme/DESCRIPTION.md b/shopfloor_reception_dock/readme/DESCRIPTION.md new file mode 100644 index 00000000000..4a24269e620 --- /dev/null +++ b/shopfloor_reception_dock/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Add docks info to shopfloor. \ No newline at end of file diff --git a/shopfloor_reception_dock/services/__init__.py b/shopfloor_reception_dock/services/__init__.py new file mode 100644 index 00000000000..aa19bba8ce4 --- /dev/null +++ b/shopfloor_reception_dock/services/__init__.py @@ -0,0 +1 @@ +from . import reception diff --git a/shopfloor_reception_dock/services/reception.py b/shopfloor_reception_dock/services/reception.py new file mode 100644 index 00000000000..e35829615f0 --- /dev/null +++ b/shopfloor_reception_dock/services/reception.py @@ -0,0 +1,36 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo.addons.component.core import Component + + +class Reception(Component): + _inherit = "shopfloor.reception" + + def _scan_document__get_handlers_by_type(self): + res = super()._scan_document__get_handlers_by_type() + res["dock"] = self._scan_document__by_dock + return res + + def _scan_document__by_dock(self, dock, barcode): + if not dock: + return None + + pickings = self.env["stock.picking"].search( + [ + *self._domain_stock_picking(), + ("dock_ids", "in", dock.ids), + ], + order=self._order_stock_picking(), + ) + + if not pickings: + return self._response_for_select_document( + message=self.msg_store.dock_no_assigned_picking(dock) + ) + + if len(pickings) == 1: + return self._select_picking(pickings) + + return self._response_for_select_document( + pickings=pickings, message=self.msg_store.dock_pickings_filtered(dock) + ) diff --git a/shopfloor_reception_dock/static/description/icon.png b/shopfloor_reception_dock/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/shopfloor_reception_dock/static/description/icon.png differ diff --git a/shopfloor_reception_dock/static/description/index.html b/shopfloor_reception_dock/static/description/index.html new file mode 100644 index 00000000000..e2ea97c385c --- /dev/null +++ b/shopfloor_reception_dock/static/description/index.html @@ -0,0 +1,445 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Shopfloor Reception Docks

+ +

Beta License: AGPL-3 OCA/wms Translate me on Weblate Try me on Runboat

+

Add docks info to shopfloor.

+

Table of contents

+ +
+

Use Cases / Context

+

During reception, carrier trucks deposit goods across various physical +unloading docks. Because these goods are technically in transit or +sitting on an external dock, they have not yet been processed into the +system’s internal stock.locations. Consequently, they are +invisible to standard inventory tracking.

+

Warehouse operators using the mobile shopfloor interface need to +know exactly which dock a specific picking or carrier truck is located +at to efficiently initiate the receiving. Without this visibility, +operators waste significant time searching the physical staging areas +for the correct pallets.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainers:

+

jbaudoux nicolas-delbovier-acsone

+

This module is part of the OCA/wms project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/shopfloor_reception_dock/tests/__init__.py b/shopfloor_reception_dock/tests/__init__.py new file mode 100644 index 00000000000..312b5074340 --- /dev/null +++ b/shopfloor_reception_dock/tests/__init__.py @@ -0,0 +1 @@ +from . import test_scan_document diff --git a/shopfloor_reception_dock/tests/test_scan_document.py b/shopfloor_reception_dock/tests/test_scan_document.py new file mode 100644 index 00000000000..55e49125289 --- /dev/null +++ b/shopfloor_reception_dock/tests/test_scan_document.py @@ -0,0 +1,67 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import Command + +from odoo.addons.shopfloor_reception.tests.common import CommonCase + + +class TestScanDocument(CommonCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.dock_0, cls.dock_1, cls.dock_2 = ( + cls.env["stock.dock"] + .sudo() + .create( + [ + {"name": "Dock 00", "barcode": "TEST-DOCK00"}, + {"name": "Dock 01", "barcode": "TEST-DOCK01"}, + {"name": "Dock 02", "barcode": "TEST-DOCK02"}, + ] + ) + ) + + cls.pick_1 = cls._create_picking() + cls.pick_2_a = cls._create_picking() + cls.pick_2_b = cls._create_picking() + + cls.pick_1.dock_ids = [Command.set(cls.dock_1.ids)] + cls.pick_2_a.dock_ids = [Command.set(cls.dock_2.ids)] + cls.pick_2_b.dock_ids = [Command.set(cls.dock_2.ids)] + + def test_scan_document_by_dock_no_picking(self): + response = self.service.dispatch( + "scan_document", params={"barcode": self.dock_0.barcode} + ) + self.assert_response( + response, + next_state="select_document", + data={ + "pickings": self._data_for_pickings( + self.pick_1 | self.pick_2_a | self.pick_2_b + ) + }, + message=self.msg_store.dock_no_assigned_picking(self.dock_0), + ) + + def test_scan_document_by_dock_one_picking(self): + response = self.service.dispatch( + "scan_document", params={"barcode": self.dock_1.barcode} + ) + self.assert_response( + response, + next_state="select_move", + data={"picking": self._data_for_picking_with_moves(self.pick_1)}, + ) + + def test_scan_document_by_dock_multiple_pickings(self): + response = self.service.dispatch( + "scan_document", params={"barcode": self.dock_2.barcode} + ) + self.assert_response( + response, + next_state="select_document", + message=self.msg_store.dock_pickings_filtered(self.dock_2), + data={"pickings": self._data_for_pickings(self.pick_2_a | self.pick_2_b)}, + ) diff --git a/shopfloor_reception_dock_mobile/README.rst b/shopfloor_reception_dock_mobile/README.rst new file mode 100644 index 00000000000..c385c33c842 --- /dev/null +++ b/shopfloor_reception_dock_mobile/README.rst @@ -0,0 +1,215 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +================================ +Shopfloor Reception Docks Mobile +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:bb14d486da1461108fbb08cd1f0f9a76e92265a15ab69f5d1dc216f04ad6c159 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/16.0/shopfloor_reception_docks_mobile + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor_reception_docks_mobile + :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/wms&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +[ This file must be max 2-3 paragraphs, and is required. + +The goal of this document is to explain quickly the features of this +module: “what” this module does and “what” it is for. ] + +Example: + +This module extends the functionality of ... to support ... and to allow +users to ... + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +[ This file is optional but strongly suggested to allow end-users to +evaluate the module's usefulness in their context. ] + +BUSINESS NEED: It should explain the “why” of the module: + +- what is the business requirement that generated the need to develop + this module +- in which context or use cases this module can be useful (practical + examples are welcome!). + +APPROACH: It could also explain the approach to address the mentioned +need. + +USEFUL INFORMATION: It can also inform on related modules: + +- modules it depends on and their features +- other modules that can work well together with this one +- suggested setups where the module is useful (eg: multicompany, + multi-website) + +Installation +============ + +[ This file must only be present if there are very specific installation +instructions, such as installing non-python dependencies. The audience +is systems administrators. ] + +To install this module, you need to: + +1. Do this ... + +Configuration +============= + +[ This file is not always required; it should explain **how to configure +the module before using it**; it is aimed at users with administration +privileges. + +Please be detailed on the path to configuration (eg: do you need to +activate developer mode?), describe step by step configurations and the +use of screenshots is strongly recommended.] + +To configure this module, you need to: + +- Go to *App* > Menu > Menu item +- Activate boolean… > save +- … + +Usage +===== + +[ This file is required and contains the instructions on **“how”** to +use the module for end-users. + +If the module does not have a visible impact on the user interface, just +add the following sentence: + + This module does not impact the user interface. + +If that’s not the case, please make sure that every usage step is +covered and remember that images speak more than words!] + +To use this module, you need to: + +- Go to *App* > Menu > Menu item + + *insert screenshot!* + +- In “Contact” form, add a value to field *xyz* > save + + *insert screenshot!* + +- The value of *xyz* is now displayed in the list view. + + *insert screenshot!* + +Known issues / Roadmap +====================== + +[ Enumerate known caveats and future potential improvements. It is +mostly intended for end-users, and can also help potential new +contributors discovering new features to implement. ] + +- ... + +Changelog +========= + +[ The change log. The goal of this file is to help readers understand +changes between version. The primary audience is end users and +integrators. Purely technical changes such as code refactoring must not +be mentioned here. + +This file may contain ONE level of section titles, underlined with the ~ +(tilde) character. Other section markers are forbidden and will likely +break the structure of the README.rst or other documents where this +fragment is included. ] + +11.0.x.y.z (YYYY-MM-DD) +----------------------- + +- [BREAKING] Breaking changes come first. + (`#70 `__) +- [ADD] New feature. (`#74 `__) +- [FIX] Correct this. (`#71 `__) + +11.0.x.y.z (YYYY-MM-DD) +----------------------- + +- ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Firstname Lastname email.address@example.org (optional company website + url) +- Second Person second.person@example.org (optional company website url) + +Other credits +------------- + +[ This file is optional and contains additional credits, other than +authors, contributors, and maintainers. ] + +The development of this module has been financially supported by: + +- Company 1 name +- Company 2 name + +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/wms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/shopfloor_reception_dock_mobile/__init__.py b/shopfloor_reception_dock_mobile/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shopfloor_reception_dock_mobile/__manifest__.py b/shopfloor_reception_dock_mobile/__manifest__.py new file mode 100644 index 00000000000..2eefef67d0b --- /dev/null +++ b/shopfloor_reception_dock_mobile/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2026 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Shopfloor Reception Dock Mobile", + "summary": """Add docks info to picking cards in shopfloor app.""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/wms", + "maintainers": ["jbaudoux", "nicolas-delbovier-acsone"], + "depends": ["shopfloor_reception_dock", "shopfloor_reception_mobile"], + "data": ["templates/assets.xml"], + "demo": [], +} diff --git a/shopfloor_reception_dock_mobile/readme/CONTRIBUTORS.md b/shopfloor_reception_dock_mobile/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..e0604c970f9 --- /dev/null +++ b/shopfloor_reception_dock_mobile/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Nicolas Delbovier (https://www.acsone.eu/) \ No newline at end of file diff --git a/shopfloor_reception_dock_mobile/static/description/icon.png b/shopfloor_reception_dock_mobile/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/shopfloor_reception_dock_mobile/static/description/icon.png differ diff --git a/shopfloor_reception_dock_mobile/static/description/index.html b/shopfloor_reception_dock_mobile/static/description/index.html new file mode 100644 index 00000000000..563090790a4 --- /dev/null +++ b/shopfloor_reception_dock_mobile/static/description/index.html @@ -0,0 +1,561 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Shopfloor Reception Docks Mobile

+ +

Beta License: AGPL-3 OCA/wms Translate me on Weblate Try me on Runboat

+

[ This file must be max 2-3 paragraphs, and is required.

+

The goal of this document is to explain quickly the features of this +module: “what” this module does and “what” it is for. ]

+

Example:

+

This module extends the functionality of … to support … and to allow +users to …

+

Table of contents

+ +
+

Use Cases / Context

+

[ This file is optional but strongly suggested to allow end-users to +evaluate the module’s usefulness in their context. ]

+

BUSINESS NEED: It should explain the “why” of the module:

+
    +
  • what is the business requirement that generated the need to develop +this module
  • +
  • in which context or use cases this module can be useful (practical +examples are welcome!).
  • +
+

APPROACH: It could also explain the approach to address the mentioned +need.

+

USEFUL INFORMATION: It can also inform on related modules:

+
    +
  • modules it depends on and their features
  • +
  • other modules that can work well together with this one
  • +
  • suggested setups where the module is useful (eg: multicompany, +multi-website)
  • +
+
+
+

Installation

+

[ This file must only be present if there are very specific installation +instructions, such as installing non-python dependencies. The audience +is systems administrators. ]

+

To install this module, you need to:

+
    +
  1. Do this …
  2. +
+
+
+

Configuration

+

[ This file is not always required; it should explain how to configure +the module before using it; it is aimed at users with administration +privileges.

+

Please be detailed on the path to configuration (eg: do you need to +activate developer mode?), describe step by step configurations and the +use of screenshots is strongly recommended.]

+

To configure this module, you need to:

+
    +
  • Go to App > Menu > Menu item
  • +
  • Activate boolean… > save
  • +
  • +
+
+
+

Usage

+

[ This file is required and contains the instructions on “how” to +use the module for end-users.

+

If the module does not have a visible impact on the user interface, just +add the following sentence:

+
+This module does not impact the user interface.
+

If that’s not the case, please make sure that every usage step is +covered and remember that images speak more than words!]

+

To use this module, you need to:

+
    +
  • Go to App > Menu > Menu item

    +

    insert screenshot!

    +
  • +
  • In “Contact” form, add a value to field xyz > save

    +

    insert screenshot!

    +
  • +
  • The value of xyz is now displayed in the list view.

    +

    insert screenshot!

    +
  • +
+
+
+

Known issues / Roadmap

+

[ Enumerate known caveats and future potential improvements. It is +mostly intended for end-users, and can also help potential new +contributors discovering new features to implement. ]

+
    +
  • +
+
+
+

Changelog

+

[ The change log. The goal of this file is to help readers understand +changes between version. The primary audience is end users and +integrators. Purely technical changes such as code refactoring must not +be mentioned here.

+

This file may contain ONE level of section titles, underlined with the ~ +(tilde) character. Other section markers are forbidden and will likely +break the structure of the README.rst or other documents where this +fragment is included. ]

+
+

11.0.x.y.z (YYYY-MM-DD)

+
    +
  • [BREAKING] Breaking changes come first. +(#70)
  • +
  • [ADD] New feature. (#74)
  • +
  • [FIX] Correct this. (#71)
  • +
+
+ +
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

[ This file is optional and contains additional credits, other than +authors, contributors, and maintainers. ]

+

The development of this module has been financially supported by:

+
    +
  • Company 1 name
  • +
  • Company 2 name
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/wms project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/shopfloor_reception_dock_mobile/static/src/scenario/reception_docks.js b/shopfloor_reception_dock_mobile/static/src/scenario/reception_docks.js new file mode 100644 index 00000000000..15cb3ff1b37 --- /dev/null +++ b/shopfloor_reception_dock_mobile/static/src/scenario/reception_docks.js @@ -0,0 +1,38 @@ +/** + * Copyright 2026 ACSONE SA/NV + * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + */ + +import {process_registry} from "/shopfloor_mobile_base/static/wms/src/services/process_registry.js"; + +const reception_scenario = process_registry.get("reception"); +const baseMethods = reception_scenario.component.methods || {}; +const original_picking_display_fields = + reception_scenario.component.methods.picking_display_fields; + +const ReceptionDocks = process_registry.extend("reception", { + methods: { + ...baseMethods, + picking_display_fields: function (...args) { + let res = []; + if (original_picking_display_fields) { + res = original_picking_display_fields.apply(this, args); + } + + res.push({ + path: "docks", + visible: (rec) => rec.docks && rec.docks.length > 0, + renderer: (rec) => { + if (!rec.docks || rec.docks.length === 0) { + return null; + } + const dockNames = rec.docks.map((dock) => dock.name).join(", "); + return "Docks: " + dockNames; + }, + }); + return res; + }, + }, +}); + +process_registry.replace("reception", ReceptionDocks); diff --git a/shopfloor_reception_dock_mobile/templates/assets.xml b/shopfloor_reception_dock_mobile/templates/assets.xml new file mode 100644 index 00000000000..a34e593bff8 --- /dev/null +++ b/shopfloor_reception_dock_mobile/templates/assets.xml @@ -0,0 +1,25 @@ + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt index 689482e20df..a0d5da06556 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1,4 @@ vcrpy-unittest odoo_test_helper + +odoo-addon-stock-picking-dock @ git+https://github.com/OCA/stock-logistics-warehouse@refs/pull/2584/head#subdirectory=setup/stock_picking_dock