diff --git a/shopfloor/services/checkout.py b/shopfloor/services/checkout.py index 01b8b6c81b..17164956f6 100644 --- a/shopfloor/services/checkout.py +++ b/shopfloor/services/checkout.py @@ -100,7 +100,6 @@ def _response_for_select_package(self, picking, lines, message=None): data={ "selected_move_lines": self._data_for_move_lines(lines.sorted()), "picking": self.data.picking(picking), - "packing_info": self._data_for_packing_info(picking), "no_package_enabled": not self.options.get( "checkout__disable_no_package" ), @@ -108,14 +107,6 @@ def _response_for_select_package(self, picking, lines, message=None): message=message, ) - def _data_for_packing_info(self, picking): - """Return the packing information - - Intended to be extended. - """ - # TODO: This could be avoided if included in the picking parser. - return "" - def _response_for_select_dest_package(self, picking, move_lines, message=None): packages = picking.mapped("move_line_ids.result_package_id").filtered( "packaging_id" diff --git a/shopfloor/tests/test_checkout_base.py b/shopfloor/tests/test_checkout_base.py index 120e1e71af..876b4bda0c 100644 --- a/shopfloor/tests/test_checkout_base.py +++ b/shopfloor/tests/test_checkout_base.py @@ -67,7 +67,6 @@ def _assert_select_package_qty_above(self, response, picking): self._move_line_data(ml) for ml in picking.move_line_ids.sorted() ], "picking": self._picking_summary_data(picking), - "packing_info": "", "no_package_enabled": True, }, message={ diff --git a/shopfloor/tests/test_checkout_list_delivery_packaging.py b/shopfloor/tests/test_checkout_list_delivery_packaging.py index 48fc87c446..2e702a83a5 100644 --- a/shopfloor/tests/test_checkout_list_delivery_packaging.py +++ b/shopfloor/tests/test_checkout_list_delivery_packaging.py @@ -111,7 +111,6 @@ def test_list_delivery_packaging_not_available(self): "selected_move_lines": [ self._move_line_data(ml) for ml in selected_lines.sorted() ], - "packing_info": self.service._data_for_packing_info(self.picking), "no_package_enabled": not self.service.options.get( "checkout__disable_no_package" ), diff --git a/shopfloor/tests/test_checkout_scan_package_action.py b/shopfloor/tests/test_checkout_scan_package_action.py index 446f50debd..e84eb37aba 100644 --- a/shopfloor/tests/test_checkout_scan_package_action.py +++ b/shopfloor/tests/test_checkout_scan_package_action.py @@ -172,7 +172,6 @@ def test_scan_package_action_scan_package_keep_source_package_error(self): data={ "picking": self.data.picking(picking), "selected_move_lines": self.data.move_lines(selected_lines), - "packing_info": self.service._data_for_packing_info(picking), "no_package_enabled": not self.service.options.get( "checkout__disable_no_package" ), diff --git a/shopfloor/tests/test_checkout_select_package_base.py b/shopfloor/tests/test_checkout_select_package_base.py index 5f4ffe42ce..b3be128eab 100644 --- a/shopfloor/tests/test_checkout_select_package_base.py +++ b/shopfloor/tests/test_checkout_select_package_base.py @@ -20,7 +20,6 @@ def _assert_selected_response( self._move_line_data(ml) for ml in selected_lines.sorted() ], "picking": self._picking_summary_data(picking), - "packing_info": packing_info, "no_package_enabled": no_package_enabled, }, message=message, diff --git a/shopfloor_mobile/static/wms/src/scenario/checkout.js b/shopfloor_mobile/static/wms/src/scenario/checkout.js index d88c2fa524..5e06db9b18 100644 --- a/shopfloor_mobile/static/wms/src/scenario/checkout.js +++ b/shopfloor_mobile/static/wms/src/scenario/checkout.js @@ -76,8 +76,8 @@ const Checkout = {