Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock: remove superfluous track visibility messages
`_run_move` creates the move, calls `_assign_picking` and then confirms it. The result is that a draft move is added to a picking and then its state is changed to confirmed. As the state of the picking is computed across its moves and a manual call to `message_track` is done when any of its move changes its state, there was a lot of tracking messages in the picking chatter, especially when you confirm a sale order (a lot of calls to _run_move). The thing is that this is unnecessary as stock.move’s `_action_confirm` will call `_assign_picking` later on AND after having changed its state to “confirmed”. Now a confirmed move is added to a confirmed picking and no message are posted. This improves considerably the validation of a massive SO.
- Loading branch information