Here is the scenario to reproduce the issue:
1. I have a product (Product 1) and the current stock is 10 quantities in WH/Stock.
2. I do internal transfer from WH/Stock to WH/Stock/Dep - 1 qty of Product 1
3. The current stock of Product 1 is 1 qty in WH/Stock/Dep and 9 qty in WH/Stock.
4. I created a sales order with 1 qty of Product 1 and view the delivery order
5. I clicked on the Check Availability button and upon checking on the reserved quants, the item that was reserved is from WH/Stock/Dep although the Source Location indicated is from WH/Stock.
6. When I clicked on Transfer button, the Source Location is WH/Stock/Dep instead of WH/Stock.
7. So I tried to change the source location to from WH/Stock/Dep to WH/Stock and clicked Apply button.
8. I checked the current stock of Product 1 but the item was deducted from WH/Stock/Dep and not in WH/Stock.
I tried this on a default database without any custom modules installed. Will someone explain why this is the behavior of Odoo?