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 :
I spent 3 days in this i do not know what i am missing.
Please help and guide