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

feat: grant read access for Employee Checkin to ESS user #708

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion hrms/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
hrms.patches.v14_0.update_payroll_frequency_to_none_if_salary_slip_is_based_on_timesheet
hrms.patches.v14_0.update_ess_user_access
5 changes: 5 additions & 0 deletions hrms/patches/v14_0/update_ess_user_access.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from hrms.setup import add_non_standard_user_types


def execute():
add_non_standard_user_types()
1 change: 1 addition & 0 deletions hrms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading