Skip to content
Snippets Groups Projects
Commit ddad0ed5 authored by Michele's avatar Michele
Browse files

[IMP] stock: unreserve only quantity required if available quantity is less...

[IMP] stock: unreserve only quantity required if available quantity is less than quantity required when action_done on stock move.

Example:
Now there is this behaviour
Inventory quantity 4
Reserved quantity 3
Available quantity 1
If i do a stock move of 2 pieces, it will unreserve ALL the stock move of the product.

With this PR it will unreserve only the pieces that are required minus the available quantity not reserved , in this case 2 (new stock move) - 1 (available quantity) = 1

closes odoo/odoo#121650

X-original-commit: 999c2045
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 0e4f3ac4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment