Custom Scripts not getting loaded

We have created a simple custom script for a new doctype in HR module. The scripts are not working, and when I see the console window - I don’t see my scripts. Whereas, when I create custom script for an existing doctype in HR module, the script works and the script is also loaded - I can see them in the console window. Any pointers?

Have tried checking for syntax errors, tried with just a single script function - misprint, tried various functions like custom_validate, after_save etc…no result :frowning: stuck for a long time now on a simple issue…

Which Frappe / ERPNext version are you using?

Erpnext version 5

Did you run “bench restart” comand to erpnext app?
The new Doctype has unchecked the “Custom?” option when you created it?