From b65bfba70acc393e484692b9d88b5ed7a90d672f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alix?= Date: Tue, 27 Feb 2024 16:37:45 +0100 Subject: [PATCH] stock_warehouse_flow: enable auto-created locations When generating automatically the new delivery route, created locations should be enabled by default. --- stock_warehouse_flow/models/stock_warehouse_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stock_warehouse_flow/models/stock_warehouse_flow.py b/stock_warehouse_flow/models/stock_warehouse_flow.py index 36ff490d84..9ce50b2d5f 100644 --- a/stock_warehouse_flow/models/stock_warehouse_flow.py +++ b/stock_warehouse_flow/models/stock_warehouse_flow.py @@ -294,6 +294,7 @@ def _generate_delivery_route(self): { "name": self.sequence_prefix, "location_id": self.warehouse_id.wh_output_stock_loc_id.id, + "active": True, } ) ) @@ -319,6 +320,7 @@ def _generate_delivery_route(self): { "name": self.sequence_prefix, "location_id": self.warehouse_id.wh_pack_stock_loc_id.id, + "active": True, } ) self.pick_type_id.default_location_dest_id = self.pack_stock_loc_id