Customer autoname method

Why does the Customer DocType require a specific implementation of autoname ?

Moreso, this method just seems to assign customer_name value to name. I require to have the name field with autogenerated IDs, so at the moment I have just commented out the Customer.autoname method and it works fine.

But I would want to know what the intention was and if I could run into other problems. Also is there a way of disabling this local method say with a fixture rather than hacking the ERPNext app code ?


Customer can be stored by customer_name or by naming series, You can set the customer naming from selling settings

autoname method in checks the settings and set the name based on its naming

Set Customer Naming By naming series

1 Like

Precisely what I needed, thanks a bunch @makarand_b