odoo/odoo#64833

Created by Noura El Allam (nea)
Closed
label
odoo-dev:master-mrp-update_mo_readiness_behaviour-nea
head
70e73bb05b6b041c6902dd9ddec8a92695b11cec
target
master

[IMP] mrp_workorder: Update WO readiness behaviour

- The work order state changes based on the availability of the components
- So if all BOM components are ``available`` the state of the first WO is set to ``ready``
- The color of ``ready`` in the WO tree editable view will stay blue as long as ``done`` reserves the green color
- If one or multiple components are not available, the state of the first WO is set to ``waiting``
- The color of ``waiting`` in the WO tree editable view is set to orange
- By default ``To launch`` takes ``workorder_ready_count`` so it counts only ``ready`` WOs
- The user can always process the WO without restrictions even if the WO state is ``waiting``


Task ID: 2426773