diff --git a/stock_helper/tests/test_location_source_from_route.py b/stock_helper/tests/test_location_source_from_route.py index 6fb0ecefe..8cb128233 100644 --- a/stock_helper/tests/test_location_source_from_route.py +++ b/stock_helper/tests/test_location_source_from_route.py @@ -48,7 +48,7 @@ class TestStockLocationSoruceFromRoute(StockHelperCommonCase): if hasattr(self.wh, "manufacture_to_resupply") or hasattr( self.wh, "buy_to_resupply" ): - expected_location = False + expected_location = self.env["stock.location"].browse() else: # only `stock` installed. expected_location = self.supplier_loc self.assertEqual(source_location, expected_location)