[IMP] stock_move_location: Allow to select any location.

This commit is contained in:
Sergio Teruel
2020-06-11 09:25:14 +02:00
committed by Alex Cuellar
parent 7f47df639f
commit 02a3b8eef9

View File

@@ -115,7 +115,11 @@ class StockMoveLocationWizard(models.TransientModel):
self.stock_move_location_line_ids = False
def _get_locations_domain(self):
return [("usage", "=", "internal")]
return [
"|",
("company_id", "=", self.env.user.company_id.id),
("company_id", "=", False),
]
def _create_picking(self):
return self.env["stock.picking"].create(