Custom Script for automatic project creation

I want to write custom script in sales order doctype to create cost center and project automatically

like if sales order no is S0001 and customer name is “test customer” then while saving salce order it will create cost center “test customer-s0001” and create project “Project-test customer-s0001” and set default cost center for the project

Shekhar Gokhale

Make > Project is already available in Sales Order, right? You can trigger the same on_submit too, if required.