From 3d330ed24ae939dc7de03ab4d02cb81bb4f34367 Mon Sep 17 00:00:00 2001 From: Marina Alapont Date: Tue, 23 Apr 2024 11:23:29 +0200 Subject: [PATCH] [IMP] stock_move_location: use current active company in multicompany environment --- 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 381a216a8..b65151680 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -67,7 +67,7 @@ class StockMoveLocationWizard(models.TransientModel): @api.depends_context("company") @api.depends("origin_location_id") def _compute_picking_type_id(self): - company_id = self.env.context.get("company_id") or self.env.user.company_id.id + company_id = self.env.context.get("company_id") or self.env.company.id for rec in self: picking_type = self.env["stock.picking.type"] base_domain = [