Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Employee Dashboard must accomodate Document Links #1103

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions hrms/overrides/dashboard_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@


def get_dashboard_for_employee(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"},
"method": "hrms.overrides.employee_master.get_timeline_data",
"transactions": [
data["transactions"].extend(
[
{"label": _("Attendance"), "items": ["Attendance", "Attendance Request", "Employee Checkin"]},
{
"label": _("Leave"),
Expand Down Expand Up @@ -50,8 +45,21 @@ def get_dashboard_for_employee(data):
"items": ["Training Event", "Training Result", "Training Feedback", "Employee Skill Map"],
},
{"label": _("Evaluation"), "items": ["Appraisal"]},
],
}
]
)

data["non_standard_fieldnames"].update(
{"Bank Account": "party", "Employee Grievance": "raised_by"}
)
data.update(
{
"heatmap": True,
"heatmap_message": _("This is based on the attendance of this Employee"),
"fieldname": "employee",
"method": "hrms.overrides.employee_master.get_timeline_data",
}
)
return data


def get_dashboard_for_holiday_list(data):
Expand Down
Loading