fix: modified permission
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 1084956..44ec1ff 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -771,4 +771,4 @@
erpnext.patches.v12_0.purchase_receipt_status
erpnext.patches.v13_0.fix_non_unique_represents_company
erpnext.patches.v12_0.add_document_type_field_for_italy_einvoicing
-erpnext.patches.v13_0.make_non_standard_user_type #12-03-2020
+erpnext.patches.v13_0.make_non_standard_user_type #31-03-2020
diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py
index b269c5e..09cba8b 100644
--- a/erpnext/setup/install.py
+++ b/erpnext/setup/install.py
@@ -183,20 +183,20 @@
def get_user_types_data():
return {
- 'ESS User': {
- 'role': 'ESS User',
+ 'Employee Self Service': {
+ 'role': 'Employee Self Service',
'apply_user_permission_on': 'Employee',
'user_id_field': 'user_id',
'doctypes': {
'Salary Slip': ['read'],
'Employee': ['read', 'write'],
- 'Timesheet': ['read', 'write', 'create'],
- 'Expense Claim': ['read', 'write', 'create'],
- 'Leave Application': ['read', 'write', 'create'],
- 'Attendance Request': ['read', 'write', 'create'],
- 'Compensatory Leave Request': ['read', 'write', 'create'],
- 'Employee Tax Exemption Declaration': ['read', 'write', 'create'],
- 'Employee Tax Exemption Proof Submission': ['read', 'write', 'create'],
+ 'Expense Claim': ['read', 'write', 'create', 'delete'],
+ 'Leave Application': ['read', 'write', 'create', 'delete'],
+ 'Attendance Request': ['read', 'write', 'create', 'delete'],
+ 'Compensatory Leave Request': ['read', 'write', 'create', 'delete'],
+ 'Employee Tax Exemption Declaration': ['read', 'write', 'create', 'delete'],
+ 'Employee Tax Exemption Proof Submission': ['read', 'write', 'create', 'delete'],
+ 'Timesheet': ['read', 'write', 'create', 'delete', 'submit', 'cancel', 'amend']
}
}
}