diff --git a/hrms/hooks.py b/hrms/hooks.py index 77f5df1a47..231ef8f539 100644 --- a/hrms/hooks.py +++ b/hrms/hooks.py @@ -258,6 +258,7 @@ "Task": "hrms.overrides.dashboard_overrides.get_dashboard_for_project", "Project": "hrms.overrides.dashboard_overrides.get_dashboard_for_project", "Timesheet": "hrms.overrides.dashboard_overrides.get_dashboard_for_timesheet", + "Bank Account": "hrms.overrides.dashboard_overrides.get_dashboard_for_bank_account", } # exempt linked doctypes from being automatically cancelled diff --git a/hrms/overrides/dashboard_overrides.py b/hrms/overrides/dashboard_overrides.py index 88c5e0639a..f14d74a0ef 100644 --- a/hrms/overrides/dashboard_overrides.py +++ b/hrms/overrides/dashboard_overrides.py @@ -80,3 +80,12 @@ def get_dashboard_for_project(data): ) return data + + +def get_dashboard_for_bank_account(data): + for section in data["transactions"]: + if section.get("label") == "Transactions": + section["items"].append("Payroll Entry") + break + + return data