From e4a87f78fdb332d80d0836f8cff8b3eb0fc47c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 20 Jan 2022 18:57:31 +0100 Subject: [PATCH] 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 --- stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock.py b/stock.py index 588a6ef91c..5af0dc49ab 100644 --- a/stock.py +++ b/stock.py @@ -567,6 +567,7 @@ class ShipmentDrop(Workflow, ModelSQL, ModelView): move.shipment = shipment to_save.append(move) Move.save(to_save) + Move.draft(to_save) cls._synchronize_moves(shipments) @classmethod