From a82296d5e1a9ae1c780852dc4d88c3f01d22ea7c Mon Sep 17 00:00:00 2001 From: Iryna Vushnevska Date: Thu, 23 Apr 2020 15:23:56 +0300 Subject: [PATCH] [IMP] stock_move_location add posibility to set picking instead of creation --- stock_move_location/wizard/stock_move_location.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index e58b8cd29..a7208227d 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -209,7 +209,10 @@ class StockMoveLocationWizard(models.TransientModel): def action_move_location(self): 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) if not self.env.context.get("planned"): moves_to_reassign = self._unreserve_moves()