I’m trying to automate Project creation using a Server Script in ERPNext.
I know that when a Project is created manually and a Project Template is selected, ERPNext automatically creates all the tasks from that template, along with the planned dates and other related logic.
My question is:
-
Is it possible to create a new Project through a Server Script and have ERPNext automatically generate the tasks from the selected Project Template?
-
Is there a built-in method or function that invokes the same logic used by the standard “Create Project from Template” flow?
-
Or would I need to manually recreate the task creation logic in my script?
I’m hoping to reuse ERPNext’s existing implementation rather than duplicating the code, especially since it already handles task creation and scheduling.
Has anyone implemented this or knows the recommended approach?