Please help me to know what to do to get notification on newly created app
like in schools module
Please help me to know what to do to get notification on newly created app
like in schools module
you can configure it using hooks.py
. Follow these steps for your custom app.
Check
@Sangram @priya_s is this same way to set on custom app
for example i have an app xyz in that xyz i have doctype license details when status changes to some thing like expired i want to do get notification
so please help me to confirm that should i do the same above things or do i need to create new files in xyz apps folder
yes.
add notification_config
in your custom app’s hooks.py
file.
e.g.
notification_config = "path to your get notification's method"
write a method to get notifications in .py
. Same as I explained in a previous reply.
so like this
notification_config = “ims.ims.notifications.get_notification_config”
in hooks.py of xyz app
and get_notification_config is in notification py
and notification.py should located in apps/xyz/xyz/xyz directory
and get_notification_config function has
return { “for_doctype”:
{
“Course License”:{“license_status”:“Expiring Soon” }
}
}
has some thing like this
return {
"for_doctype": {
"Course License":{"license_status":"Expiring Soon"}
}
}
Check manually is there any Course License
with license_status
Expiring Soon
. If It is available, make sure you gave correct path in - hooks.py
.
Check existing notification functionality in frappe/ERPNext
.