Skip to content

Commit

Permalink
[FIX] stock_helper: expect empty recordset instead of False
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed Dec 27, 2024
1 parent 5214d2a commit 2fb24c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_helper/tests/test_location_source_from_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2fb24c5

Please sign in to comment.