Inventory expected quantity is overriden after confirming
When clicking the confirm button of a stock inventory the complete_moves method is called after the new moves are creating, which results updating all the lines with the new expected quantity.
This is because the complete_inventory is called for every write done in the inventory move, but it should only be changed when the lines are changed.