mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_move_location add posibility to set picking instead of creation
This commit is contained in:
@@ -209,7 +209,10 @@ class StockMoveLocationWizard(models.TransientModel):
|
|||||||
|
|
||||||
def action_move_location(self):
|
def action_move_location(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
picking = self._create_picking()
|
if not self.picking_id:
|
||||||
|
picking = self._create_picking()
|
||||||
|
else:
|
||||||
|
picking = self.picking_id
|
||||||
self._create_moves(picking)
|
self._create_moves(picking)
|
||||||
if not self.env.context.get("planned"):
|
if not self.env.context.get("planned"):
|
||||||
moves_to_reassign = self._unreserve_moves()
|
moves_to_reassign = self._unreserve_moves()
|
||||||
|
|||||||
Reference in New Issue
Block a user