Put the customer code as a mandatory field
Put the customer code as a mandatory field.
When the option to automatically generate the field is disabled and the person does not enter a code, the client is created without a code and the sites associated with this client do not work.