fix: remove HR/Payroll references from form dashboards

- Employee, Holiday List, Project, Task, Timesheet
This commit is contained in:
Rucha Mahabal 2022-06-24 15:03:16 +05:30
parent 39e0d22044
commit c619b58ba9
5 changed files with 3 additions and 56 deletions

View File

@ -9,7 +9,7 @@ def get_data():
"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"]},

View File

@ -6,6 +6,5 @@ def get_data():
"fieldname": "task",
"transactions": [
{"label": _("Activity"), "items": ["Timesheet"]},
{"label": _("Accounting"), "items": ["Expense Claim"]},
],
}

View File

@ -4,5 +4,5 @@ from frappe import _
def get_data():
return {
"fieldname": "time_sheet",
"transactions": [{"label": _("References"), "items": ["Sales Invoice", "Salary Slip"]}],
"transactions": [{"label": _("References"), "items": ["Sales Invoice"]}],
}

View File

@ -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"]},
],
}

View File

@ -3,13 +3,11 @@ def get_data():
"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"]},
],
}