Skip to content

Commit

Permalink
Merge pull request #794 from ruchamahabal/fix-ess-access-for-claims
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal authored Aug 16, 2023
2 parents 5e7d0c4 + 42ba599 commit b69a82e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hrms/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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_ess_user_access
hrms.patches.v14_0.update_ess_user_access #2023-08-14
execute:frappe.db.set_default("date_format", frappe.db.get_single_value("System Settings", "date_format"))
hrms.patches.v14_0.create_vehicle_service_item
hrms.patches.v15_0.notify_about_loan_app_separation
4 changes: 3 additions & 1 deletion hrms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def add_non_standard_user_types():

user_type_limit = {}
for user_type, data in user_types.items():
user_type_limit.setdefault(frappe.scrub(user_type), 20)
user_type_limit.setdefault(frappe.scrub(user_type), 30)

update_site_config("user_type_doctype_limit", user_type_limit)

Expand All @@ -522,11 +522,13 @@ def get_user_types_data():
# masters
"Holiday List": ["read"],
"Employee": ["read", "write"],
"Company": ["read"],
# payroll
"Salary Slip": ["read"],
"Employee Benefit Application": ["read", "write", "create", "delete"],
# expenses
"Expense Claim": ["read", "write", "create", "delete"],
"Expense Claim Type": ["read"],
"Employee Advance": ["read", "write", "create", "delete"],
# leave and attendance
"Leave Application": ["read", "write", "create", "delete"],
Expand Down

0 comments on commit b69a82e

Please sign in to comment.