fix: remove HR/Payroll references from form dashboards
- Employee, Holiday List, Project, Task, Timesheet
diff --git a/erpnext/projects/doctype/project/project_dashboard.py b/erpnext/projects/doctype/project/project_dashboard.py
index b6c74f9..5d17efb 100644
--- a/erpnext/projects/doctype/project/project_dashboard.py
+++ b/erpnext/projects/doctype/project/project_dashboard.py
@@ -9,7 +9,7 @@
"transactions": [
{
"label": _("Project"),
- "items": ["Task", "Timesheet", "Expense Claim", "Issue", "Project Update"],
+ "items": ["Task", "Timesheet", "Issue", "Project Update"],
},
{"label": _("Material"), "items": ["Material Request", "BOM", "Stock Entry"]},
{"label": _("Sales"), "items": ["Sales Order", "Delivery Note", "Sales Invoice"]},
diff --git a/erpnext/projects/doctype/task/task_dashboard.py b/erpnext/projects/doctype/task/task_dashboard.py
index 07477da..52ff790 100644
--- a/erpnext/projects/doctype/task/task_dashboard.py
+++ b/erpnext/projects/doctype/task/task_dashboard.py
@@ -6,6 +6,5 @@
"fieldname": "task",
"transactions": [
{"label": _("Activity"), "items": ["Timesheet"]},
- {"label": _("Accounting"), "items": ["Expense Claim"]},
],
}
diff --git a/erpnext/projects/doctype/timesheet/timesheet_dashboard.py b/erpnext/projects/doctype/timesheet/timesheet_dashboard.py
index 6d6b57b..07e96cc 100644
--- a/erpnext/projects/doctype/timesheet/timesheet_dashboard.py
+++ b/erpnext/projects/doctype/timesheet/timesheet_dashboard.py
@@ -4,5 +4,5 @@
def get_data():
return {
"fieldname": "time_sheet",
- "transactions": [{"label": _("References"), "items": ["Sales Invoice", "Salary Slip"]}],
+ "transactions": [{"label": _("References"), "items": ["Sales Invoice"]}],
}
diff --git a/erpnext/setup/doctype/employee/employee_dashboard.py b/erpnext/setup/doctype/employee/employee_dashboard.py
deleted file mode 100644
index da89a1d..0000000
--- a/erpnext/setup/doctype/employee/employee_dashboard.py
+++ /dev/null
@@ -1,50 +0,0 @@
-from frappe import _
-
-
-def get_data():
- return {
- "heatmap": True,
- "heatmap_message": _("This is based on the attendance of this Employee"),
- "fieldname": "employee",
- "non_standard_fieldnames": {"Bank Account": "party", "Employee Grievance": "raised_by"},
- "transactions": [
- {"label": _("Attendance"), "items": ["Attendance", "Attendance Request", "Employee Checkin"]},
- {
- "label": _("Leave"),
- "items": ["Leave Application", "Leave Allocation", "Leave Policy Assignment"],
- },
- {
- "label": _("Lifecycle"),
- "items": [
- "Employee Onboarding",
- "Employee Transfer",
- "Employee Promotion",
- "Employee Grievance",
- ],
- },
- {
- "label": _("Exit"),
- "items": ["Employee Separation", "Exit Interview", "Full and Final Statement"],
- },
- {"label": _("Shift"), "items": ["Shift Request", "Shift Assignment"]},
- {"label": _("Expense"), "items": ["Expense Claim", "Travel Request", "Employee Advance"]},
- {"label": _("Benefit"), "items": ["Employee Benefit Application", "Employee Benefit Claim"]},
- {
- "label": _("Payroll"),
- "items": [
- "Salary Structure Assignment",
- "Salary Slip",
- "Additional Salary",
- "Timesheet",
- "Employee Incentive",
- "Retention Bonus",
- "Bank Account",
- ],
- },
- {
- "label": _("Training"),
- "items": ["Training Event", "Training Result", "Training Feedback", "Employee Skill Map"],
- },
- {"label": _("Evaluation"), "items": ["Appraisal"]},
- ],
- }
diff --git a/erpnext/setup/doctype/holiday_list/holiday_list_dashboard.py b/erpnext/setup/doctype/holiday_list/holiday_list_dashboard.py
index 0cbf094..f483edc 100644
--- a/erpnext/setup/doctype/holiday_list/holiday_list_dashboard.py
+++ b/erpnext/setup/doctype/holiday_list/holiday_list_dashboard.py
@@ -3,13 +3,11 @@
"fieldname": "holiday_list",
"non_standard_fieldnames": {
"Company": "default_holiday_list",
- "Leave Period": "optional_holiday_list",
},
"transactions": [
{
"items": ["Company", "Employee", "Workstation"],
},
- {"items": ["Leave Period", "Shift Type"]},
- {"items": ["Service Level", "Service Level Agreement"]},
+ {"items": ["Service Level Agreement"]},
],
}