changeset b1e3bfa60f63 in modules/sale_supply_drop_shipment:default
details: 
https://hg.tryton.org/modules/sale_supply_drop_shipment?cmd=changeset&node=b1e3bfa60f63
description:
        Ensure customer moves are added in draft state

        We can not rely on the asynchronous sale processing to set to draft the
        customer moves because it can happen after the drop shipment is done.

        issue11121
        review376431002
diffstat:

 stock.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 319b781965cb -r b1e3bfa60f63 stock.py
--- a/stock.py  Wed Jan 19 16:14:35 2022 +0100
+++ b/stock.py  Thu Jan 20 18:57:31 2022 +0100
@@ -567,6 +567,7 @@
                                 move.shipment = shipment
                                 to_save.append(move)
         Move.save(to_save)
+        Move.draft(to_save)
         cls._synchronize_moves(shipments)
 
     @classmethod

Reply via email to