Autoname Method Not Working While Check custom Check box In Doctype

Hello Every one,

I have created one doctype ‘abc’ in hr module with custom check box selected,
In abc.py file I write autoname method,
but autoname method is not work because i have checked custom check box.
when I unchecked custom check box then its work perfectly, but ‘abc’ not display in hr module list.

I want display ‘abc’ doctype in hr module and also want that autoname method is work.

So any one please assist me…

Thank You.

@Divyesh_Amreliya if you want to write controller, DocType cannot be custom.