diff --git a/shopfloor/services/checkout.py b/shopfloor/services/checkout.py index ec7bd1cb8d..9fee3d3f52 100644 --- a/shopfloor/services/checkout.py +++ b/shopfloor/services/checkout.py @@ -103,7 +103,6 @@ def _data_response_for_select_package(self, picking, lines): return { "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"), # Used by inheriting module "package_allowed": True, @@ -116,14 +115,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 2cc8a54248..adf94d951c 100644 --- a/shopfloor/tests/test_checkout_base.py +++ b/shopfloor/tests/test_checkout_base.py @@ -68,7 +68,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, "package_allowed": True, }, diff --git a/shopfloor/tests/test_checkout_list_delivery_packaging.py b/shopfloor/tests/test_checkout_list_delivery_packaging.py index 8097aca08e..4ad20687ef 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 5d76da56e4..f287d29e0e 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 82e532a9c3..78fd239b72 100644 --- a/shopfloor/tests/test_checkout_select_package_base.py +++ b/shopfloor/tests/test_checkout_select_package_base.py @@ -21,7 +21,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, "package_allowed": package_allowed, }, diff --git a/shopfloor_mobile/static/wms/src/css/main.css b/shopfloor_mobile/static/wms/src/css/main.css index 7adb202473..035856c025 100644 --- a/shopfloor_mobile/static/wms/src/css/main.css +++ b/shopfloor_mobile/static/wms/src/css/main.css @@ -71,3 +71,10 @@ I tested only w/ checkout/select_package for now top: 5px; right: 5px; } + +/* +Split the lines correctly if there are multiple lines separated by \n in a v-text. +*/ +.split-text-lines { + white-space: pre-line; +} diff --git a/shopfloor_mobile/static/wms/src/scenario/checkout.js b/shopfloor_mobile/static/wms/src/scenario/checkout.js index fe463fa21e..bfda2612bb 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 = {
- -

+ +

+ +

+