changeset 02b9da5cf94b in modules/stock:default details: https://hg.tryton.org/modules/stock?cmd=changeset;node=02b9da5cf94b description: 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 diffstat: shipment.py | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diffs (20 lines): diff -r 832d0ad3bc8f -r 02b9da5cf94b shipment.py --- a/shipment.py Wed Oct 21 23:11:13 2020 +0200 +++ b/shipment.py Wed Oct 21 23:48:57 2020 +0200 @@ -1214,7 +1214,6 @@ 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 @@ 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):