diff --git a/hrms/patches.txt b/hrms/patches.txt index 70fabfb1ec..f373de5d9b 100644 --- a/hrms/patches.txt +++ b/hrms/patches.txt @@ -7,4 +7,5 @@ hrms.patches.v1_0.rearrange_employee_fields hrms.patches.post_install.update_allocate_on_in_leave_type hrms.patches.v14_0.create_custom_field_for_appraisal_template hrms.patches.post_install.update_performance_module_changes #2023-04-17 -hrms.patches.v14_0.update_payroll_frequency_to_none_if_salary_slip_is_based_on_timesheet \ No newline at end of file +hrms.patches.v14_0.update_payroll_frequency_to_none_if_salary_slip_is_based_on_timesheet +hrms.patches.v14_0.update_ess_user_access \ No newline at end of file diff --git a/hrms/patches/v14_0/update_ess_user_access.py b/hrms/patches/v14_0/update_ess_user_access.py new file mode 100644 index 0000000000..012337e274 --- /dev/null +++ b/hrms/patches/v14_0/update_ess_user_access.py @@ -0,0 +1,5 @@ +from hrms.setup import add_non_standard_user_types + + +def execute(): + add_non_standard_user_types() diff --git a/hrms/setup.py b/hrms/setup.py index e220f301eb..12338487b5 100644 --- a/hrms/setup.py +++ b/hrms/setup.py @@ -534,6 +534,7 @@ def get_user_types_data(): "Training Program": ["read"], "Training Feedback": ["read", "write", "create", "delete", "submit", "cancel", "amend"], # shifts + "Employee Checkin": ["read"], "Shift Request": ["read", "write", "create", "delete", "submit", "cancel", "amend"], # misc "Employee Grievance": ["read", "write", "create", "delete"],