Hidden inventory moves after changing warehouse in shipment out
I have a Shipment out in Waiting state with an outgoing move and an inventory move.
If I:
- go back to Draft state.
- remove outgoing move (both saving and not saving the shipment).
- change warehouse at shipment header.
- recover outgoing move (if deletion was not confirmed).
Inventory move disappear due to From location does not match with new warehouse. So this movement remains in the system and must be deleted from Stock move form.
I'm working in last version of 3.8, but I checked last code of stock module and I think there is nothing to prevent it.
Could be a solution to delete inventory moves when changing state from Waiting to Draft?