i want to hide the activity section only dont want to hide the connect.so how to do?
Hi @neha
Use Frappe’s override_doctype_dashboards hook.
- Create file: custom_app/item_dashboard_override.py
def get_dashboard_data(data=None):
if data is None:
data = {}
data["heatmap"] = False # Hide activity section
return data
- Add to hooks.py:
override_doctype_dashboards = {
"Item": "custom_app.item_dashboard_override.get_dashboard_data"
}
- Apply:
bench migrate
bench clear-cache
bench restart
1 Like
not working
