In ERPNext, how can I automatically set the Planned Start Date of a Work Order based on the Planned Finished Date (or actual completion status) of the previous Work Order?
Context:
When I create multiple Work Orders, ERPNext assigns Planned Start Dates independently (based on production lead time, planned date, or manual input). However, in my workflow the next Work Order should only begin after the previous one has been completed.
Example:
- WO1 planned for 9:00–10:00
- WO2 should start only after WO1 finishes, i.e., at 10:00
- WO3 should start only after WO2 finishes, and so on.
Additional Requirement (Rescheduling):
If WO1 is delayed and actually finishes at 10:40 instead of 10:00, then WO2 should automatically shift to start at 10:40, and WO3 should also shift accordingly.
Question Details:
- Is there any built-in ERPNext configuration (like routing, scheduler, or dependency settings) that supports this type of sequential Work Order planning with auto-rescheduling?
- Or would I need to achieve this through a custom script, hook, or scheduler job?