Hi
check the fieldname. it should be naming_series
fieldname must be of type select
check the core example:
yes i know this the issue was i turend on the developer mode and made settings in customized form and some edit doctype so it was overriding the naming series