From 64c7900ebdea08fa961067b020e083b6ece80f04 Mon Sep 17 00:00:00 2001 From: Yoshi Tashiro Date: Sat, 23 Dec 2023 08:43:30 +0000 Subject: [PATCH] [FIX] stock_move_location: _get_locations_domain() Before this commit, the wrong company could be used in the domain. --- stock_move_location/wizard/stock_move_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index 2fe212fb0..c2bc85eea 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -157,7 +157,7 @@ class StockMoveLocationWizard(models.TransientModel): def _get_locations_domain(self): return [ "|", - ("company_id", "=", self.env.user.company_id.id), + ("company_id", "=", self.env.company.id), ("company_id", "=", False), ]