Skip to content
Snippets Groups Projects
Commit 41c05cbf authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] stock: unreserve picking with latest scheduled date


- Create a product P with 10 units on hand
- Create a SO with 5 units, validate
- Create another SO with 5 units, validate
- Update the quantity on hand to 8

The picking linked to the first SO as 2 units unreserved, while one
would expect the unreservation on the second picking.

When unreserving, sort the move lines according to the picking scheduled
date. The latest schedule date comes first.

opw-2233331

closes odoo/odoo#49770

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 1cf02f80
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