Saturday, February 24, 2024
1 change · saas-17.1
Resolved issues and error corrections
This update fixes an issue where reducing the quantity of a sales order would incorrectly create a return instead of adjusting stock levels. The fix ensures stock moves are merged correctly, regardless of their procurement method, leading to more accurate inventory tracking and order fulfillment. This improves the reliability of our stock management system.
Original PR description
Steps to reproduce:
- In User settings add 'allocation reports' group to the admin User
- In Inventory settings enable allocation reports
- Create a stored product with 0/0 reordering rules and set a vendor
- Create an SO for that product
- Confirm the generated PO and click assign all on its receipt's allocation report
- Reduce the quantity on the SO and save
Bug:
a return is created instead of adjusting the quantity to deliver the stock moves were not merged because their procurement method do not match ('make_to_stock' / 'make_to_order')
Fix:
ignore procurement method when merging the moves
opw-3621316
Forward-Port-Of: odoo/odoo#154773
Forward-Port-Of: odoo/odoo#153439