mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_move_location: Allow to select any location.
This commit is contained in:
committed by
Alex Cuellar
parent
7f47df639f
commit
02a3b8eef9
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user