From da396b4223038f5de115efc30dc3c362e802489b Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Wed, 21 Oct 2020 23:48:57 +0200 Subject: [PATCH] Do not assign on pick and do not synchronize on pack Assigning on pick prevents to edit the outgoing moves. Synchronize on pack could undo user modification of outgoing moves. issue9725 review304481002 --- shipment.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/shipment.py b/shipment.py index 8d028000e3..83b9a0d5ee 100644 --- a/shipment.py +++ b/shipment.py @@ -1214,7 +1214,6 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): Move = pool.get('stock.move') Move.do([m for s in shipments for m in s.inventory_moves]) cls._sync_inventory_to_outgoing(shipments, quantity=True) - Move.assign([m for s in shipments for m in s.outgoing_moves]) @classmethod @ModelView.button @@ -1223,8 +1222,6 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): def pack(cls, shipments): pool = Pool() Move = pool.get('stock.move') - Move.do([m for s in shipments for m in s.inventory_moves]) - cls._sync_inventory_to_outgoing(shipments, quantity=True) Move.assign([m for s in shipments for m in s.outgoing_moves]) def _sync_move_key(self, move):