app_name- slugified name e.g. "frappe"app_title- full title name e.g. "Frappe"app_publisherapp_descriptionapp_version
before_install- methodafter_install- method
The site runs these hooks when it disables an app, and when it enables the app again. The app keeps its schema and its data. These hooks change only what the app does on the site.
before_disable- method, runs while the app is still activeafter_disable- method, runs after the app becomes inactivebefore_enable- method, runs while the app is still inactiveafter_enable- method, runs after the app becomes active again
An app hides and shows its own customizations in these hooks. Call frappe.custom.hide_customizations from before_disable, and frappe.custom.unhide_customizations from after_enable. bench migrate runs before_disable again, so before_disable must give the same result each time.
A disable or an enable is one transaction. If a hook fails, the site keeps the state that it had before, and nothing the hook wrote remains.
-
app_include_js- include in "app" -
app_include_css- assets/frappe/css/splash.css -
web_include_js- assets/js/frappe-web.min.js -
web_include_css- assets/css/frappe-web.css
get_desktop_icons- method to get list of desktop icons
notification_config- method to get notification configuration
permission_query_conditions:[doctype]- method to return additional query conditions at time of report / list etc.has_permission:[doctype]- method to call permissions to check at individual level