Controller method didnt triggers

i have issue when i write controller event methods didnt trigger

i create new app called projects_mngmnt
i add new doctype called Work_order
note : i have set
set-config server_script_enabled True
then in Work_order.py file i write this function :

but when i save or update doc nothing happens :frowning:
plz i need help