Auto Generate Item Code if not entered by the user

Try below. It might help.
Go to item list, from the drop down menu go to customize form.
In the row series, in the options give your series option. if you hahe more than one give in the next line.
Select update form.

Go to new item.
you should be able to see the naming series.

Below post might help you Item code generation