Merge PR #1422 into 13.0

Signed-off-by rousseldenis
This commit is contained in:
OCA-git-bot
2022-09-07 10:07:20 +00:00

View File

@@ -12,7 +12,7 @@ class StockMoveLocationWizard(models.TransientModel):
_description = "Wizard move location"
def _get_default_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
return (
self.env["stock.picking.type"]
.search(
@@ -119,7 +119,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),
]