Hooks method not working

Hi All
I have created a new module and doctype inside it.
In one of doctype, I need to implement server-side implementation.
In order to achieve it, I have written the function inside the controller and also add it to hooks.
however, it is not get triggered and worked as the default behavior.
I have enabled the Developer mode also cleared the cache. I have not got any errors as well.
My py file is :
image
Hooks

I spent 3 days in this i do not know what i am missing.
Please help and guide

Try to run bench clear-cache to clear hook cache.

1 Like

If you aren’t working with “bench start” running you will need to run “bench restart” every time you make updates to a source file.