See this reply and try to do the same for your case in projects, it would probably look like this:
def autoname(doc, method):
doc.name = doc.project_name
Also, don’t forget to update your hooks file with the correct event for the correct doctype. Here’s an example:
doc_events = {
"Project":{
"autoname": "myapp.myapp.validations.validations.autoname"
}
}
If it is possible via Customize Form, I don’t know about it.
Also use this app for reference if you get lost somewhere :