Skip to content

Commit

Permalink
fix: perm errors during expense claim creation for ESS users (backport
Browse files Browse the repository at this point in the history
…#794) (#795)

Co-authored-by: Rucha Mahabal <[email protected]>
  • Loading branch information
mergify[bot] and ruchamahabal authored Aug 16, 2023
1 parent 3b5f7e7 commit a13ee09
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 @@ -6,6 +6,6 @@ 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_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
4 changes: 3 additions & 1 deletion hrms/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,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 @@ -526,11 +526,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 a13ee09

Please sign in to comment.