[IMP] stock_move_location add posibility to set picking instead of creation

This commit is contained in:
Iryna Vushnevska
2020-04-23 15:23:56 +03:00
committed by sonhd
parent 67171155b8
commit a2d52d0bbd

View File

@@ -209,7 +209,10 @@ class StockMoveLocationWizard(models.TransientModel):
def action_move_location(self):
self.ensure_one()
if not self.picking_id:
picking = self._create_picking()
else:
picking = self.picking_id
self._create_moves(picking)
if not self.env.context.get("planned"):
moves_to_reassign = self._unreserve_moves()