How to add custom js in hooks.py

i had created an app and write some js there and want to link it with the code doctype and it will be link through hooks.py of that custom app but where do i link the custom js path buying addon is the custom app

Please check this.

doctype_js = {
         "YOUR_DOCTYPE_NAME" : "YOUR_FILE_PATH"
}
1 Like


like this

But remove first buying_addon/ and then check it.

thanks @NCP