mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_move_location: use current active company in multicompany environment
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user