Skip to content
Snippets Groups Projects
Commit 18a00405 authored by paso-odoo's avatar paso-odoo
Browse files

[FIX] mrp: handle keyError when workorder(s) deleted


If applied, this commit will solve the issue of keyError when we confirm the
manufacturing order and work order (s) are deleted.

Steps to produce:
- Configure BOM with 'Operations'.
- Set operations in the 'Consumed in Operation' field which is in 'Components'.
- Create MO using that BOM.
- Delete the work order(s) from MO.
- Click on the 'Confirm' button.

Fix this issue when the work order is not available for that operation,
setting False in stock.move record(s).

sentry - 4171798106

closes odoo/odoo#122115

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 63688d31
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