-
-
Notifications
You must be signed in to change notification settings - Fork 729
Description
Module
stock_no_negative (from stock-logistics-workflow)
Describe the bug
When attempting to reduce the quantity of a validated incoming shipment after a partial delivery has already been made, the system raises a stock availability error, even though the resulting stock level would remain positive. This prevents legitimate corrections to incoming quantities.
To Reproduce
v16:
- Create a new incoming shipment (picking type: Receipts).
- Add a product with Done Qty = 10.
- Validate the picking (this is the first stock entry for the product).
- Create and validate an outgoing delivery for 2 units of the same product.
- Go back to the incoming shipment, unlock it.
- Change the Done Qty from 10 to 8.
- Try to validate the picking.
Expected behavior
The system should allow reducing the quantity on an incoming shipment as long as the resulting stock on hand remains >= 0. In this case, reducing from 10 to 8 while only 2 have been delivered should leave 6 units in stock, which is valid. The error is too strict and blocks valid corrections.
Additional context
Odoo 16.0 Enterprise
OCA module stock_no_negative
Product has tracking disabled
Product has no previous stock (first receipt)