changeset f51295ca496c in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=f51295ca496c
description:
Do not reset to draft staging outgoing move when waiting customer
shipment
issue11698
diffstat:
shipment.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 9b8ef75eb991 -r f51295ca496c shipment.py
--- a/shipment.py Sat Sep 10 18:34:29 2022 +0200
+++ b/shipment.py Tue Sep 13 01:04:26 2022 +0200
@@ -1277,7 +1277,9 @@
Move.draft(moves)
Move.delete([m for s in shipments for m in s.inventory_moves
if m.state in ('draft', 'cancelled')])
- Move.draft([m for s in shipments for m in s.outgoing_moves])
+ Move.draft([
+ m for s in shipments for m in s.outgoing_moves
+ if m.state != 'staging'])
to_create = []
for shipment in shipments: