Hello, I’m using the Lead doctype and it looks like if I don’t enter the lead_name, it will fetch the name from the organization name field as shown in the code from erpnext/lead.js at develop · frappe/erpnext · GitHub
company_name () {
if (!this.frm.doc.lead_name) {
this.frm.set_value("lead_name", this.frm.doc.company_name);
}
}
This method will override every try to make the lead_name empty. So is there a way to override or remove the defualt function to run.