Merge pull request #17837 from Anurag810/hr_dashboard
feat: Dashboards for Human Resource module
This commit is contained in:
commit
ddec4035cf
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'kra_template',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Appraisal']
|
||||
},
|
||||
],
|
||||
}
|
@ -12,24 +12,32 @@ def get_data():
|
||||
'items': ['Attendance', 'Attendance Request', 'Leave Application', 'Leave Allocation']
|
||||
},
|
||||
{
|
||||
'label': _('Payroll'),
|
||||
'items': ['Salary Structure Assignment', 'Salary Slip', 'Timesheet']
|
||||
'label': _('Lifecycle'),
|
||||
'items': ['Employee Transfer', 'Employee Promotion', 'Employee Separation']
|
||||
},
|
||||
{
|
||||
'label': _('Shift'),
|
||||
'items': ['Shift Request', 'Shift Assignment']
|
||||
},
|
||||
{
|
||||
'label': _('Expense'),
|
||||
'items': ['Expense Claim']
|
||||
'items': ['Expense Claim', 'Travel Request']
|
||||
},
|
||||
{
|
||||
'label': _('Benefit'),
|
||||
'items': ['Employee Benefit Application', 'Employee Benefit Claim']
|
||||
},
|
||||
{
|
||||
'label': _('Evaluation'),
|
||||
'items': ['Appraisal']
|
||||
},
|
||||
{
|
||||
'label': _('Training'),
|
||||
'items': ['Training Event', 'Training Result']
|
||||
'label': _('Payroll'),
|
||||
'items': ['Salary Structure Assignment', 'Salary Slip', 'Additional Salary', 'Timesheet','Employee Incentive', 'Retention Bonus']
|
||||
},
|
||||
{
|
||||
'label': _('Lifecycle'),
|
||||
'items': ['Employee Transfer', 'Employee Promotion', 'Employee Separation']
|
||||
}
|
||||
'label': _('Training'),
|
||||
'items': ['Training Event', 'Training Result', 'Training Feedback', 'Employee Skill Map']
|
||||
},
|
||||
]
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'employee_onboarding_template',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Employee Onboarding']
|
||||
},
|
||||
],
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'employee_separation_template',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Employee Separation']
|
||||
},
|
||||
],
|
||||
}
|
@ -13,6 +13,9 @@ def get_data():
|
||||
},
|
||||
{
|
||||
'items': ['Leave Period', 'Shift Type']
|
||||
},
|
||||
{
|
||||
'items': ['Service Level', 'Service Level Agreement']
|
||||
}
|
||||
]
|
||||
}
|
15
erpnext/hr/doctype/job_applicant/job_applicant_dashboard.py
Normal file
15
erpnext/hr/doctype/job_applicant/job_applicant_dashboard.py
Normal file
@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'job_applicant',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Employee', 'Employee Onboarding']
|
||||
},
|
||||
{
|
||||
'items': ['Job Offer']
|
||||
},
|
||||
],
|
||||
}
|
12
erpnext/hr/doctype/job_opening/job_opening_dashboard.py
Normal file
12
erpnext/hr/doctype/job_opening/job_opening_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'job_title',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Job Applicant']
|
||||
}
|
||||
],
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'leave_allocation',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Compensatory Leave Request']
|
||||
},
|
||||
{
|
||||
'items': ['Leave Encashment']
|
||||
}
|
||||
],
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'loan_application',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Loan']
|
||||
},
|
||||
],
|
||||
}
|
12
erpnext/hr/doctype/loan_type/loan_type_dashboard.py
Normal file
12
erpnext/hr/doctype/loan_type/loan_type_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'loan_type',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Loan Application']
|
||||
},
|
||||
],
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'payroll_period',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Employee Tax Exemption Proof Submission', 'Employee Tax Exemption Declaration']
|
||||
},
|
||||
],
|
||||
}
|
@ -4,9 +4,15 @@ from frappe import _
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'salary_structure',
|
||||
'non_standard_fieldnames': {
|
||||
'Employee Grade': 'default_salary_structure'
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Salary Structure Assignment']
|
||||
}
|
||||
'items': ['Salary Structure Assignment', 'Salary Slip']
|
||||
},
|
||||
{
|
||||
'items': ['Employee Grade']
|
||||
},
|
||||
]
|
||||
}
|
12
erpnext/hr/doctype/shift_request/shift_request_dashboard.py
Normal file
12
erpnext/hr/doctype/shift_request/shift_request_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'shift_request',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Shift Assignment']
|
||||
},
|
||||
],
|
||||
}
|
12
erpnext/hr/doctype/shift_type/shift_type_dashboard.py
Normal file
12
erpnext/hr/doctype/shift_type/shift_type_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'shift_type',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Shift Request', 'Shift Assignment']
|
||||
}
|
||||
],
|
||||
}
|
12
erpnext/hr/doctype/staffing_plan/staffing_plan_dashboard.py
Normal file
12
erpnext/hr/doctype/staffing_plan/staffing_plan_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'staffing_plan',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Job Opening']
|
||||
}
|
||||
],
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'training_event',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Training Result', 'Training Feedback']
|
||||
},
|
||||
],
|
||||
}
|
@ -1,14 +1,20 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
data = {
|
||||
def get_data():
|
||||
return {
|
||||
'heatmap': True,
|
||||
'heatmap_message': _('This is based on logs against this Vehicle. See timeline below for details'),
|
||||
'fieldname': 'license_plate',
|
||||
'non_standard_fieldnames':{
|
||||
'Delivery Trip': 'vehicle'
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Logs'),
|
||||
'items': ['Vehicle Log']
|
||||
},
|
||||
{
|
||||
'items': ['Delivery Trip']
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user