Message 73158

Author
ced
Date
2022-01-06.12:27:17
Message id
73158

Content

When a drop shipment transition to "waiting", we add the pending moves from the linked sales. When the drop shipment is done, the customer moves are done also.
The problem is if the customer moves are still in staging state when the drop shipment is done. This can happen because the sale moves are set to draft only in _process_shipment which is triggered asynchronously by the drop shipment ship or done transition. So if the queue is too busy (or not working), the customer moves can still be in staging state when the shipment is done. So the move is not set to done (because staging can only transition to draft).
So for me we must ensure that we add as customer moves only draft moves.

History
Date User Action Args
2022-01-06 12:27:18cedsetmessageid: <1641468438.158119.DNIKSVTHCSRPLIXO.issue11121@tryton.org>
2022-01-06 12:27:18cedlinkissue11121 messages
2022-01-06 12:27:17cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)