Field with numbers


I have a custom doctype and i was wondering if I can have a custom field where I can have generated a new number eveytime when a new custom document is created something like Naming Series but I can not use naming series because the DOC.NAME is generated by the sum of 2 different custom filleds.


Write it in your controller validate method, to set a value if blank.

@rmehta I am looking to have something like a series. what is ,controller"?

If in your DocType, custom checkbox is checked then controllers aren’t supported.

If it is not checked, then you can find your controller by filename as {custom_doctype}.py