From 2fb24c5e80bb2845334b3dd29601f448cbaf1336 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Fri, 27 Dec 2024 11:08:40 +0100 Subject: [PATCH] [FIX] stock_helper: expect empty recordset instead of False --- stock_helper/tests/test_location_source_from_route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_helper/tests/test_location_source_from_route.py b/stock_helper/tests/test_location_source_from_route.py index 6fb0ecefe282..8cb128233bb7 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 @@ def test_get_source_location_from_route(self): 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)