How to hide this activity section only

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.

  1. 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
  1. Add to hooks.py:
  override_doctype_dashboards = {
        "Item": "custom_app.item_dashboard_override.get_dashboard_data"
  }
  1. Apply:
bench migrate
bench clear-cache
bench restart
1 Like

not working