Skip to content
Snippets Groups Projects
Commit d99ac29d authored by yhu-odoo's avatar yhu-odoo Committed by Adrien Widart (awt)
Browse files

[FIX] mrp: cancel leftover moves when create backorder


Previously, when underconsumption occured, we split the move (in
post_inventory). And if backorder, the moves not done would be linked to
the new backorder MO (when backorder MO is created).
After 8883c06a, we create backorder MOs
before _post_inventory, making it so the moves not done will not be
linked to the backorder MOs and reserved qtys are not released.
To fix, we set cancel_backorder to be true to cancel all the leftover
moves and release the reserved qty.

Task-2697611

closes odoo/odoo#80271

closes odoo/odoo#110990

Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent c89c563b
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment