[FIX] stock_helper: expect empty recordset instead of False

This commit is contained in:
Lois Rilo
2024-12-27 11:08:40 +01:00
parent 5214d2a624
commit 2fb24c5e80

View File

@@ -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)