From 7b0bfe76cc4ee573d2e9e8a2890f5fae5d67fcce Mon Sep 17 00:00:00 2001 From: iamkhanraheel Date: Tue, 24 Mar 2026 19:57:42 +0530 Subject: [PATCH] fix: default permission for HR User role --- erpnext/accounts/doctype/account/account.json | 7 ++++++- erpnext/accounts/doctype/cost_center/cost_center.json | 9 +++++++-- .../doctype/mode_of_payment/mode_of_payment.json | 10 ++++++++-- erpnext/projects/doctype/project/project.json | 6 +++++- erpnext/projects/doctype/task/task.json | 6 +++++- erpnext/setup/doctype/company/company.json | 7 ++++++- erpnext/setup/doctype/holiday_list/holiday_list.json | 6 +++++- .../terms_and_conditions/terms_and_conditions.json | 9 +++++++-- 8 files changed, 49 insertions(+), 11 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.json b/erpnext/accounts/doctype/account/account.json index 8b74dd823ec..7908fe9cbab 100644 --- a/erpnext/accounts/doctype/account/account.json +++ b/erpnext/accounts/doctype/account/account.json @@ -203,7 +203,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2025-08-02 06:26:44.657146", + "modified": "2026-03-24 12:43:45.708738", "modified_by": "Administrator", "module": "Accounts", "name": "Account", @@ -256,6 +256,11 @@ "role": "Accounts Manager", "share": 1, "write": 1 + }, + { + "read": 1, + "report": 1, + "role": "HR User" } ], "row_format": "Dynamic", diff --git a/erpnext/accounts/doctype/cost_center/cost_center.json b/erpnext/accounts/doctype/cost_center/cost_center.json index 8a84e2c4c01..744fee4e003 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center.json +++ b/erpnext/accounts/doctype/cost_center/cost_center.json @@ -126,7 +126,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2025-01-22 10:46:42.904001", + "modified": "2026-03-24 12:44:03.297998", "modified_by": "Administrator", "module": "Accounts", "name": "Cost Center", @@ -173,11 +173,16 @@ "role": "Employee", "select": 1, "share": 1 + }, + { + "read": 1, + "role": "HR User" } ], + "row_format": "Dynamic", "search_fields": "parent_cost_center, is_group", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "ASC", "states": [] -} \ No newline at end of file +} diff --git a/erpnext/accounts/doctype/mode_of_payment/mode_of_payment.json b/erpnext/accounts/doctype/mode_of_payment/mode_of_payment.json index f7e7fc414bd..134fc3d1751 100644 --- a/erpnext/accounts/doctype/mode_of_payment/mode_of_payment.json +++ b/erpnext/accounts/doctype/mode_of_payment/mode_of_payment.json @@ -48,7 +48,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-08-16 19:22:42.942264", + "modified": "2026-03-24 12:48:15.343727", "modified_by": "Administrator", "module": "Accounts", "name": "Mode of Payment", @@ -68,12 +68,18 @@ "read": 1, "report": 1, "role": "Accounts User" + }, + { + "read": 1, + "report": 1, + "role": "HR User" } ], "quick_entry": 1, + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "ASC", "states": [], "translated_doctype": 1 -} \ No newline at end of file +} diff --git a/erpnext/projects/doctype/project/project.json b/erpnext/projects/doctype/project/project.json index e36e15f71f5..1525c07771e 100644 --- a/erpnext/projects/doctype/project/project.json +++ b/erpnext/projects/doctype/project/project.json @@ -480,7 +480,7 @@ "index_web_pages_for_search": 1, "links": [], "max_attachments": 4, - "modified": "2026-03-09 17:15:24.426294", + "modified": "2026-03-24 12:52:03.156389", "modified_by": "Administrator", "module": "Projects", "name": "Project", @@ -524,6 +524,10 @@ "role": "Employee", "select": 1, "share": 1 + }, + { + "read": 1, + "role": "HR User" } ], "quick_entry": 1, diff --git a/erpnext/projects/doctype/task/task.json b/erpnext/projects/doctype/task/task.json index 9335a196989..c9071e01435 100644 --- a/erpnext/projects/doctype/task/task.json +++ b/erpnext/projects/doctype/task/task.json @@ -423,7 +423,7 @@ "is_tree": 1, "links": [], "max_attachments": 5, - "modified": "2026-03-04 11:47:10.454548", + "modified": "2026-03-24 12:57:46.063009", "modified_by": "Administrator", "module": "Projects", "name": "Task", @@ -441,6 +441,10 @@ "role": "Projects User", "share": 1, "write": 1 + }, + { + "read": 1, + "role": "HR User" } ], "quick_entry": 1, diff --git a/erpnext/setup/doctype/company/company.json b/erpnext/setup/doctype/company/company.json index ab64635c048..ddce64615e7 100644 --- a/erpnext/setup/doctype/company/company.json +++ b/erpnext/setup/doctype/company/company.json @@ -970,7 +970,7 @@ "image_field": "company_logo", "is_tree": 1, "links": [], - "modified": "2026-03-09 17:15:33.819426", + "modified": "2026-03-24 12:44:15.614147", "modified_by": "Administrator", "module": "Setup", "name": "Company", @@ -1030,6 +1030,11 @@ { "role": "Auditor", "select": 1 + }, + { + "read": 1, + "report": 1, + "role": "HR User" } ], "row_format": "Dynamic", diff --git a/erpnext/setup/doctype/holiday_list/holiday_list.json b/erpnext/setup/doctype/holiday_list/holiday_list.json index dd7955f4c40..9728d1a9306 100644 --- a/erpnext/setup/doctype/holiday_list/holiday_list.json +++ b/erpnext/setup/doctype/holiday_list/holiday_list.json @@ -153,7 +153,7 @@ "icon": "fa fa-calendar", "idx": 1, "links": [], - "modified": "2025-08-28 15:17:05.313383", + "modified": "2026-03-24 13:05:44.681123", "modified_by": "Administrator", "module": "Setup", "name": "Holiday List", @@ -170,6 +170,10 @@ "role": "HR Manager", "share": 1, "write": 1 + }, + { + "read": 1, + "role": "HR User" } ], "row_format": "Dynamic", diff --git a/erpnext/setup/doctype/terms_and_conditions/terms_and_conditions.json b/erpnext/setup/doctype/terms_and_conditions/terms_and_conditions.json index 335780a0b05..444b9aee85e 100644 --- a/erpnext/setup/doctype/terms_and_conditions/terms_and_conditions.json +++ b/erpnext/setup/doctype/terms_and_conditions/terms_and_conditions.json @@ -77,7 +77,7 @@ "icon": "icon-legal", "idx": 1, "links": [], - "modified": "2024-03-27 13:10:53.065872", + "modified": "2026-03-24 16:36:37.021007", "modified_by": "Administrator", "module": "Setup", "name": "Terms and Conditions", @@ -130,11 +130,16 @@ { "read": 1, "role": "Stock User" + }, + { + "read": 1, + "role": "HR User" } ], "quick_entry": 1, + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "ASC", "states": [] -} \ No newline at end of file +}