diff --git a/README.md b/README.md index 64e903901c..6b3f9c9727 100644 --- a/README.md +++ b/README.md @@ -27,43 +27,46 @@ addon | version | maintainers | summary [sale_stock_available_to_promise_release](sale_stock_available_to_promise_release/) | 14.0.1.1.1 | | Integration between Sales and Available to Promise Release [sale_stock_available_to_promise_release_cutoff](sale_stock_available_to_promise_release_cutoff/) | 14.0.1.1.1 | | Cutoff management with respect to stock availability [sale_stock_available_to_promise_release_dropshipping](sale_stock_available_to_promise_release_dropshipping/) | 14.0.1.0.0 | | Glue module between sale_stock_available_to_promise_release and stock_dropshipping -[shopfloor](shopfloor/) | 14.0.3.5.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | manage warehouse operations with barcode scanners -[shopfloor_base](shopfloor_base/) | 14.0.2.10.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | Core module for creating mobile apps +[shopfloor](shopfloor/) | 14.0.4.2.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | manage warehouse operations with barcode scanners +[shopfloor_base](shopfloor_base/) | 14.0.2.10.1 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | Core module for creating mobile apps [shopfloor_base_multicompany](shopfloor_base_multicompany/) | 14.0.1.0.0 | | Provide multi-company support and validation to Shopfloor applications. [shopfloor_batch_automatic_creation](shopfloor_batch_automatic_creation/) | 14.0.1.2.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Create batch transfers for Cluster Picking [shopfloor_checkout_package_measurement](shopfloor_checkout_package_measurement/) | 14.0.1.1.0 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Add a screen on checkout scenario for required package measurements. [shopfloor_checkout_package_measurement_mobile](shopfloor_checkout_package_measurement_mobile/) | 14.0.1.0.3 | | Frontend for package measurement on the checkout shopfloor scenario [shopfloor_checkout_sync](shopfloor_checkout_sync/) | 14.0.1.0.0 | [![guewen](https://github.com/guewen.png?size=30px)](https://github.com/guewen) | Glue module -[shopfloor_dangerous_goods](shopfloor_dangerous_goods/) | 14.0.1.0.1 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) | Glue Module Between Shopfloor and Stock Dangerous Goods +[shopfloor_dangerous_goods](shopfloor_dangerous_goods/) | 14.0.1.1.0 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) | Glue Module Between Shopfloor and Stock Dangerous Goods [shopfloor_dangerous_goods_mobile](shopfloor_dangerous_goods_mobile/) | 14.0.1.1.1 | | Glue module between Shopfloor Mobile and Shopfloor Dangerous Goods -[shopfloor_delivery_shipment](shopfloor_delivery_shipment/) | 14.0.1.3.0 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Manage delivery process with shipment advices -[shopfloor_delivery_shipment_mobile](shopfloor_delivery_shipment_mobile/) | 14.0.1.2.0 | | Frontend for delivery shipment scenario for shopfloor +[shopfloor_delivery_shipment](shopfloor_delivery_shipment/) | 14.0.1.4.2 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Manage delivery process with shipment advices +[shopfloor_delivery_shipment_mobile](shopfloor_delivery_shipment_mobile/) | 14.0.1.3.1 | | Frontend for delivery shipment scenario for shopfloor [shopfloor_example](shopfloor_example/) | 14.0.1.2.0 | | Show how to customize the Shopfloor app frontend. -[shopfloor_manual_product_transfer](shopfloor_manual_product_transfer/) | 14.0.1.5.0 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | Manage manual product transfers +[shopfloor_manual_product_transfer](shopfloor_manual_product_transfer/) | 14.0.1.5.1 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | Manage manual product transfers [shopfloor_manual_product_transfer_mobile](shopfloor_manual_product_transfer_mobile/) | 14.0.1.3.0 | | Frontend for manual product transfer scenario for Shopfloor -[shopfloor_mobile](shopfloor_mobile/) | 14.0.1.31.2 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Mobile frontend for WMS Shopfloor app -[shopfloor_mobile_base](shopfloor_mobile_base/) | 14.0.3.16.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Mobile frontend for WMS Shopfloor app +[shopfloor_mobile](shopfloor_mobile/) | 14.0.1.33.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Mobile frontend for WMS Shopfloor app +[shopfloor_mobile_base](shopfloor_mobile_base/) | 14.0.3.17.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Mobile frontend for WMS Shopfloor app [shopfloor_mobile_base_auth_api_key](shopfloor_mobile_base_auth_api_key/) | 14.0.2.1.0 | | Provides authentication via API key to Shopfloor base mobile app [shopfloor_mobile_base_auth_user](shopfloor_mobile_base_auth_user/) | 14.0.2.0.1 | | Provides authentication via standard user login -[shopfloor_packing_info](shopfloor_packing_info/) | 14.0.1.0.1 | | Allows to predefine packing information messages per partner. -[shopfloor_reception](shopfloor_reception/) | 14.0.2.3.1 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) [![JuMiSanAr](https://github.com/JuMiSanAr.png?size=30px)](https://github.com/JuMiSanAr) | Reception scenario for shopfloor +[shopfloor_packing_info](shopfloor_packing_info/) | 14.0.1.1.0 | | Allows to predefine packing information messages per partner. +[shopfloor_purchase_base](shopfloor_purchase_base/) | 14.0.1.1.0 | [![mt-software-de](https://github.com/mt-software-de.png?size=30px)](https://github.com/mt-software-de) | Module for Shopfloor Purchase Data connection +[shopfloor_reception](shopfloor_reception/) | 14.0.2.5.0 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) [![JuMiSanAr](https://github.com/JuMiSanAr.png?size=30px)](https://github.com/JuMiSanAr) | Reception scenario for shopfloor [shopfloor_reception_mobile](shopfloor_reception_mobile/) | 14.0.0.7.0 | [![JuMiSanAr](https://github.com/JuMiSanAr.png?size=30px)](https://github.com/JuMiSanAr) | Scenario for receiving products +[shopfloor_reception_purchase_partner_ref](shopfloor_reception_purchase_partner_ref/) | 14.0.1.1.0 | [![mt-software-de](https://github.com/mt-software-de.png?size=30px)](https://github.com/mt-software-de) | Adds the purchase partner ref field to shopfloor reception scenario +[shopfloor_reception_purchase_partner_ref_mobile](shopfloor_reception_purchase_partner_ref_mobile/) | 14.0.1.1.0 | [![mt-software-de](https://github.com/mt-software-de.png?size=30px)](https://github.com/mt-software-de) | Adds the purchase partner ref field to shopfloor reception scenario [shopfloor_rest_log](shopfloor_rest_log/) | 14.0.1.2.1 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Integrate rest_log into Shopfloor app -[shopfloor_single_product_transfer](shopfloor_single_product_transfer/) | 14.0.2.1.0 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) | Move an item from one location to another. +[shopfloor_single_product_transfer](shopfloor_single_product_transfer/) | 14.0.2.1.1 | [![mmequignon](https://github.com/mmequignon.png?size=30px)](https://github.com/mmequignon) | Move an item from one location to another. [shopfloor_single_product_transfer_force_package](shopfloor_single_product_transfer_force_package/) | 14.0.1.0.0 | [![JuMiSanAr](https://github.com/JuMiSanAr.png?size=30px)](https://github.com/JuMiSanAr) | Force to select package if location already contains packages. [shopfloor_single_product_transfer_mobile](shopfloor_single_product_transfer_mobile/) | 14.0.1.1.0 | [![JuMiSanAr](https://github.com/JuMiSanAr.png?size=30px)](https://github.com/JuMiSanAr) | Mobile frontend for single product transfer scenario [shopfloor_single_product_transfer_unique_order_at_location](shopfloor_single_product_transfer_unique_order_at_location/) | 14.0.1.0.0 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Prevent to mix sales order on same consolidation location. -[shopfloor_workstation](shopfloor_workstation/) | 14.0.1.3.0 | | Manage warehouse workstation with barcode scanners +[shopfloor_workstation](shopfloor_workstation/) | 14.0.1.3.1 | | Manage warehouse workstation with barcode scanners [shopfloor_workstation_label_printer](shopfloor_workstation_label_printer/) | 14.0.1.1.0 | | Adds a label printer configuration to the user and shopfloor workstation. [shopfloor_workstation_mobile](shopfloor_workstation_mobile/) | 14.0.1.0.1 | | Shopfloor mobile app integration for workstation -[stock_available_to_promise_release](stock_available_to_promise_release/) | 14.0.2.1.1 | | Release Operations based on available to promise +[stock_available_to_promise_release](stock_available_to_promise_release/) | 14.0.2.1.2 | | Release Operations based on available to promise [stock_available_to_promise_release_dynamic_routing](stock_available_to_promise_release_dynamic_routing/) | 14.0.1.0.0 | | Glue between moves release and dynamic routing [stock_checkout_sync](stock_checkout_sync/) | 14.0.1.1.0 | | Sync location for Checkout operations -[stock_dynamic_routing](stock_dynamic_routing/) | 14.0.1.0.2 | | Dynamic routing of stock moves +[stock_dynamic_routing](stock_dynamic_routing/) | 14.0.1.1.0 | [![jbaudoux](https://github.com/jbaudoux.png?size=30px)](https://github.com/jbaudoux) | Dynamic routing of stock moves [stock_dynamic_routing_checkout_sync](stock_dynamic_routing_checkout_sync/) | 14.0.1.0.0 | | Glue module for tests when dynamic routing and checkout sync are used [stock_dynamic_routing_reserve_rule](stock_dynamic_routing_reserve_rule/) | 14.0.1.0.1 | | Glue module between dynamic routing and reservation rules -[stock_move_source_relocate](stock_move_source_relocate/) | 14.0.1.1.0 | | Change source location of unavailable moves -[stock_move_source_relocate_dynamic_routing](stock_move_source_relocate_dynamic_routing/) | 14.0.1.0.1 | | Glue module +[stock_move_source_relocate](stock_move_source_relocate/) | 14.0.1.2.0 | [![jbaudoux](https://github.com/jbaudoux.png?size=30px)](https://github.com/jbaudoux) | Change source location of unavailable moves +[stock_move_source_relocate_dynamic_routing](stock_move_source_relocate_dynamic_routing/) | 14.0.1.1.0 | [![jbaudoux](https://github.com/jbaudoux.png?size=30px)](https://github.com/jbaudoux) | Glue module [stock_picking_completion_info](stock_picking_completion_info/) | 14.0.1.1.0 | | Display on current document completion information according to next operations [stock_picking_consolidation_priority](stock_picking_consolidation_priority/) | 14.0.1.1.0 | | Raise priority of all transfers for a chain when started [stock_picking_type_shipping_policy](stock_picking_type_shipping_policy/) | 14.0.1.1.0 | | Define different shipping policies according to picking type @@ -72,13 +75,13 @@ addon | version | maintainers | summary [stock_reception_screen_measuring_device](stock_reception_screen_measuring_device/) | 14.0.1.0.0 | [![gurneyalex](https://github.com/gurneyalex.png?size=30px)](https://github.com/gurneyalex) | Allow to use a measuring device from a reception screen.for packaging measurement [stock_reception_screen_qty_by_packaging](stock_reception_screen_qty_by_packaging/) | 14.0.1.1.0 | | Glue module for `stock_product_qty_by_packaging` and `stock_vertical_lift`. [stock_release_channel](stock_release_channel/) | 14.0.2.1.0 | [![sebalix](https://github.com/sebalix.png?size=30px)](https://github.com/sebalix) | Manage workload in WMS with release channels -[stock_storage_type](stock_storage_type/) | 14.0.1.12.0 | | Manage packages and locations storage types +[stock_storage_type](stock_storage_type/) | 14.0.1.12.1 | [![jbaudoux](https://github.com/jbaudoux.png?size=30px)](https://github.com/jbaudoux) | Manage packages and locations storage types [stock_storage_type_buffer](stock_storage_type_buffer/) | 14.0.1.3.0 | | Exclude storage locations from put-away if their buffer is full [stock_storage_type_putaway_abc](stock_storage_type_putaway_abc/) | 14.0.1.0.0 | | Advanced storage strategy ABC for WMS [stock_unique_order_per_location](stock_unique_order_per_location/) | 14.0.1.0.0 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Prevent to mix sales order on same consolidation location. -[stock_warehouse_flow](stock_warehouse_flow/) | 14.0.2.0.1 | | Configure routing flow for stock moves +[stock_warehouse_flow](stock_warehouse_flow/) | 14.0.2.0.2 | | Configure routing flow for stock moves [stock_warehouse_flow_product_packaging](stock_warehouse_flow_product_packaging/) | 14.0.2.0.0 | [![mt-software-de](https://github.com/mt-software-de.png?size=30px)](https://github.com/mt-software-de) | Configure packaging types on routing flows for stock moves -[stock_warehouse_flow_release](stock_warehouse_flow_release/) | 14.0.2.0.0 | | Warehouse flows integrated with Operation Release +[stock_warehouse_flow_release](stock_warehouse_flow_release/) | 14.0.2.0.1 | | Warehouse flows integrated with Operation Release [//]: # (end addons) diff --git a/delivery_carrier_preference/README.rst b/delivery_carrier_preference/README.rst index 26b5392c42..11955aa1ea 100644 --- a/delivery_carrier_preference/README.rst +++ b/delivery_carrier_preference/README.rst @@ -2,10 +2,13 @@ Delivery Carrier Preference =========================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:398d68549b0f0f750e86a99b2aecec19458c0d737bba669a926f8e6b7b1786c8 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Delivery Carrier Preference .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-delivery_carrier_preference :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/14.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/wms&target_branch=14.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module allows to define preferred shipping methods in order to fine tune the selection of proper delivery carrier from delivery operations according to @@ -58,7 +61,7 @@ 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 smashing it by providing a detailed and welcomed +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. diff --git a/delivery_carrier_preference/static/description/index.html b/delivery_carrier_preference/static/description/index.html index ce4f059e7b..a2bd61d926 100644 --- a/delivery_carrier_preference/static/description/index.html +++ b/delivery_carrier_preference/static/description/index.html @@ -1,20 +1,20 @@ - + - + Delivery Carrier Preference + + +
+

Shopfloor Purchase Base

+ + +

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

+

This is a glue module between shopfloor and l10n_eu_product_adr

+

Table of contents

+ +
+

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

+
    +
  • MT Software
  • +
+
+
+

Contributors

+ +
+
+

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 maintainer:

+

mt-software-de

+

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_purchase_base/tests/__init__.py b/shopfloor_purchase_base/tests/__init__.py new file mode 100644 index 0000000000..c6a5342420 --- /dev/null +++ b/shopfloor_purchase_base/tests/__init__.py @@ -0,0 +1 @@ +from . import test_actions_data diff --git a/shopfloor_purchase_base/tests/test_actions_data.py b/shopfloor_purchase_base/tests/test_actions_data.py new file mode 100644 index 0000000000..a8389b07aa --- /dev/null +++ b/shopfloor_purchase_base/tests/test_actions_data.py @@ -0,0 +1,29 @@ +# Copyright 2023 Michael Tietz (MT Software) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo.addons.shopfloor.tests.test_actions_data_base import ActionsDataCaseBase + + +class ActionsDataPurchase(ActionsDataCaseBase): + def test_data_purchase_order(self): + picking = self.env["stock.picking"].search( + [("purchase_id", "!=", False)], limit=1 + ) + purchase = picking.purchase_id + purchase.sudo().partner_ref = "test" + expected_purchase_data = { + "id": purchase.id, + "name": purchase.name, + "partner_ref": purchase.partner_ref, + } + purchase_data = self.data.purchase_order(purchase) + self.assertDictEqual(expected_purchase_data, purchase_data) + self.assert_schema(self.schema.purchase_order(), purchase_data) + data = self.data.picking(picking) + self.assertTrue("purchase_order" not in data) + expected_picking_data = data + expected_picking_data.update({"purchase_order": purchase_data}) + self.assert_schema(self.schema.picking(), expected_picking_data) + self.assertDictEqual( + expected_picking_data, + self.data.picking(picking, with_purchase_order=True), + ) diff --git a/shopfloor_reception/README.rst b/shopfloor_reception/README.rst index 5ee7cd7550..1d05f76058 100644 --- a/shopfloor_reception/README.rst +++ b/shopfloor_reception/README.rst @@ -2,10 +2,13 @@ Shopfloor Reception =================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:87e1bfc7de3a33326afa876b4ea293f2429e30045749344a4b5ec187db45b47a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Shopfloor Reception .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_reception :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/14.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/wms&target_branch=14.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| Shopfloor implementation of the reception scenario. Allows to receive products and create the proper packs for each logistic unit. @@ -43,7 +46,7 @@ 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 smashing it by providing a detailed and welcomed +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. diff --git a/shopfloor_reception/__init__.py b/shopfloor_reception/__init__.py index 5b1c56416a..2d9836a742 100644 --- a/shopfloor_reception/__init__.py +++ b/shopfloor_reception/__init__.py @@ -1,2 +1,3 @@ from . import services from . import models +from .hooks import post_init_hook, uninstall_hook diff --git a/shopfloor_reception/__manifest__.py b/shopfloor_reception/__manifest__.py index 9cabc73441..ea7ca31c75 100644 --- a/shopfloor_reception/__manifest__.py +++ b/shopfloor_reception/__manifest__.py @@ -1,7 +1,7 @@ { "name": "Shopfloor Reception", "summary": "Reception scenario for shopfloor", - "version": "14.0.2.3.1", + "version": "14.0.2.5.0", "development_status": "Beta", "category": "Inventory", "website": "https://github.com/OCA/wms", @@ -17,4 +17,6 @@ "demo/stock_picking_type_demo.xml", "demo/shopfloor_menu_demo.xml", ], + "post_init_hook": "post_init_hook", + "uninstall_hook": "uninstall_hook", } diff --git a/shopfloor_reception/hooks.py b/shopfloor_reception/hooks.py new file mode 100644 index 0000000000..5bc64b4f28 --- /dev/null +++ b/shopfloor_reception/hooks.py @@ -0,0 +1,24 @@ +# Copyright 2023 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +import logging + +from odoo import SUPERUSER_ID, api + +from odoo.addons.shopfloor_base.utils import purge_endpoints, register_new_services + +from .services.reception import Reception as Service + +_logger = logging.getLogger(__file__) + + +def post_init_hook(cr, registry): + env = api.Environment(cr, SUPERUSER_ID, {}) + _logger.info("Register routes for %s", Service._usage) + register_new_services(env, Service) + + +def uninstall_hook(cr, registry): + env = api.Environment(cr, SUPERUSER_ID, {}) + _logger.info("Refreshing routes for existing apps") + purge_endpoints(env, Service._usage) diff --git a/shopfloor_reception/i18n/it.po b/shopfloor_reception/i18n/it.po new file mode 100644 index 0000000000..e5b8c367da --- /dev/null +++ b/shopfloor_reception/i18n/it.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * shopfloor_reception +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: shopfloor_reception +#: model:ir.model.fields,field_description:shopfloor_reception.field_stock_picking__display_name +msgid "Display Name" +msgstr "" + +#. module: shopfloor_reception +#: model:ir.model.fields,field_description:shopfloor_reception.field_stock_picking__id +msgid "ID" +msgstr "" + +#. module: shopfloor_reception +#: model:ir.model.fields,field_description:shopfloor_reception.field_stock_picking__is_shopfloor_created +msgid "Is Shopfloor Created" +msgstr "" + +#. module: shopfloor_reception +#: model:ir.model.fields,field_description:shopfloor_reception.field_stock_picking____last_update +msgid "Last Modified on" +msgstr "" + +#. module: shopfloor_reception +#: model:shopfloor.menu,name:shopfloor_reception.shopfloor_menu_demo_reception +#: model:shopfloor.scenario,name:shopfloor_reception.scenario_reception +#: model:stock.picking.type,name:shopfloor_reception.picking_type_reception_demo +msgid "Reception" +msgstr "" + +#. module: shopfloor_reception +#: model:ir.model,name:shopfloor_reception.model_stock_picking +msgid "Transfer" +msgstr "" diff --git a/shopfloor_reception/services/reception.py b/shopfloor_reception/services/reception.py index 107ae5e697..f1d421deb2 100644 --- a/shopfloor_reception/services/reception.py +++ b/shopfloor_reception/services/reception.py @@ -261,7 +261,7 @@ def _scan_line__find_or_create_line(self, picking, move, qty_done=1): # the remaining quantity to do of its move. line.product_uom_qty = move.product_uom_qty - move.quantity_done else: - qty_todo_remaining = move.product_uom_qty - move.quantity_done + qty_todo_remaining = max(0, move.product_uom_qty - move.quantity_done) values = move._prepare_move_line_vals(quantity=qty_todo_remaining) line = self.env["stock.move.line"].create(values) return self._scan_line__assign_user(picking, line, qty_done) @@ -693,8 +693,10 @@ def _assign_user_to_line(self, line): # DATA METHODS - def _data_for_stock_picking(self, picking, with_lines=False): - data = self.data.picking(picking, with_progress=True) + def _data_for_stock_picking(self, picking, with_lines=False, **kw): + if "with_progress" not in kw: + kw["with_progress"] = True + data = self.data.picking(picking, **kw) if with_lines: data.update({"moves": self._data_for_moves(picking.move_lines)}) return data diff --git a/shopfloor_reception/static/description/index.html b/shopfloor_reception/static/description/index.html index 45cc9b6614..90c50f17b1 100644 --- a/shopfloor_reception/static/description/index.html +++ b/shopfloor_reception/static/description/index.html @@ -1,20 +1,20 @@ - + - + Shopfloor Reception + + +
+

Shopfloor Reception Purchase Partner Ref

+ + +

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

+

Shopfloor extension of the reception scenario. +Show the purchase.order partner_ref field on the picking views

+

Table of contents

+ +
+

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

+
    +
  • MT Software
  • +
+
+
+

Contributors

+ +
+
+

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 maintainer:

+

mt-software-de

+

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_purchase_partner_ref/tests/__init__.py b/shopfloor_reception_purchase_partner_ref/tests/__init__.py new file mode 100644 index 0000000000..6ed6a549ad --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/tests/__init__.py @@ -0,0 +1 @@ +from . import test_data diff --git a/shopfloor_reception_purchase_partner_ref/tests/test_data.py b/shopfloor_reception_purchase_partner_ref/tests/test_data.py new file mode 100644 index 0000000000..9bcfdbfd98 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/tests/test_data.py @@ -0,0 +1,13 @@ +# Copyright 2023 Michael Tietz (MT Software) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +from odoo.addons.shopfloor_reception.tests.common import CommonCase + + +class TestDataForPicking(CommonCase): + def test_data_for_picking(self): + picking = self._create_picking() + data = self.service._data_for_stock_picking(picking) + expected = self.data.picking( + picking, **{"with_progress": True, "with_purchase_order": True} + ) + self.assertDictEqual(expected, data) diff --git a/shopfloor_reception_purchase_partner_ref_mobile/README.rst b/shopfloor_reception_purchase_partner_ref_mobile/README.rst new file mode 100644 index 0000000000..6aac40cd8d --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/README.rst @@ -0,0 +1,85 @@ +=============================================== +Shopfloor Reception Purchase Partner Ref Mobile +=============================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:5eaa3076d1a394fbbba6999a85be375bef5f3c3e276b7afd465d8c4f91d4bd9b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/14.0/shopfloor_reception_purchase_partner_ref_mobile + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_reception_purchase_partner_ref_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=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* MT Software + +Contributors +~~~~~~~~~~~~ + +* Michael Tietz (MT Software) + +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-mt-software-de| image:: https://github.com/mt-software-de.png?size=40px + :target: https://github.com/mt-software-de + :alt: mt-software-de + +Current `maintainer `__: + +|maintainer-mt-software-de| + +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_purchase_partner_ref_mobile/__init__.py b/shopfloor_reception_purchase_partner_ref_mobile/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py b/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py new file mode 100644 index 0000000000..aac09618d0 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py @@ -0,0 +1,16 @@ +{ + "name": "Shopfloor Reception Purchase Partner Ref Mobile", + "summary": "Adds the purchase partner ref field to shopfloor reception scenario", + "version": "14.0.1.1.0", + "category": "Inventory", + "website": "https://github.com/OCA/wms", + "author": "MT Software, Odoo Community Association (OCA)", + "maintainers": ["mt-software-de"], + "license": "AGPL-3", + "depends": [ + "shopfloor_reception_purchase_partner_ref", + "shopfloor_reception_mobile", + ], + "data": ["templates/assets.xml"], + "auto_install": True, +} diff --git a/shopfloor_reception_purchase_partner_ref_mobile/i18n/shopfloor_reception_purchase_partner_ref_mobile.pot b/shopfloor_reception_purchase_partner_ref_mobile/i18n/shopfloor_reception_purchase_partner_ref_mobile.pot new file mode 100644 index 0000000000..4d8b20f912 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/i18n/shopfloor_reception_purchase_partner_ref_mobile.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" diff --git a/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst b/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..446fd1d576 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Michael Tietz (MT Software) diff --git a/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst b/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..2060028106 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views diff --git a/shopfloor_reception_purchase_partner_ref_mobile/static/description/icon.png b/shopfloor_reception_purchase_partner_ref_mobile/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/shopfloor_reception_purchase_partner_ref_mobile/static/description/icon.png differ diff --git a/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html b/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html new file mode 100644 index 0000000000..7a2ad932ed --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +Shopfloor Reception Purchase Partner Ref Mobile + + + +
+

Shopfloor Reception Purchase Partner Ref Mobile

+ + +

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

+

Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views

+

Table of contents

+ +
+

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

+
    +
  • MT Software
  • +
+
+
+

Contributors

+ +
+
+

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 maintainer:

+

mt-software-de

+

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_purchase_partner_ref_mobile/static/src/scenario/reception.js b/shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js new file mode 100644 index 0000000000..476c3c1c05 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js @@ -0,0 +1,32 @@ +/** + * Copyright 2023 Michael Tietz (MT Software) + * License AGPL-3.0 or later (https://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 select_dest_package_display_name_values = + reception_scenario.component.methods.select_dest_package_display_name_values; +const picking_display_fields = + reception_scenario.component.methods.picking_display_fields; + +const ReceptionPartnerRef = process_registry.extend("reception", { + "methods.select_dest_package_display_name_values": function (rec) { + var values = select_dest_package_display_name_values.bind(this)(rec); + if (rec.purchase_order.partner_ref) { + values.splice(1, 0, rec.purchase_order.partner_ref); + } + return values; + }, + "methods.picking_display_fields": function () { + var fields = picking_display_fields.bind(this)(); + fields.splice(1, 0, { + path: "purchase_order.partner_ref", + label: "Vendor Reference", + }); + return fields; + }, +}); + +process_registry.replace("reception", ReceptionPartnerRef); diff --git a/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml b/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml new file mode 100644 index 0000000000..552e8ab01a --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml @@ -0,0 +1,20 @@ + + + + diff --git a/shopfloor_rest_log/README.rst b/shopfloor_rest_log/README.rst index 0bb94592f2..fcc0fede65 100644 --- a/shopfloor_rest_log/README.rst +++ b/shopfloor_rest_log/README.rst @@ -2,10 +2,13 @@ Shopfloor REST log ================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:ffb766da3589dda4ac114fa20f6b3f185e7d2f6aec118e856a6296ca61a1ad7b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Shopfloor REST log .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_rest_log :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/14.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/wms&target_branch=14.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| Integrate `rest_log` with `shopfloor_base`. @@ -53,7 +56,7 @@ 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 smashing it by providing a detailed and welcomed +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. diff --git a/shopfloor_rest_log/static/description/index.html b/shopfloor_rest_log/static/description/index.html index 56f9a51d99..9d28eba071 100644 --- a/shopfloor_rest_log/static/description/index.html +++ b/shopfloor_rest_log/static/description/index.html @@ -1,20 +1,20 @@ - + - + Shopfloor REST log