From 27f3981269710ee2d1a6ab0662132b08e01bf2bf Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:19:36 +0530 Subject: [PATCH] fix: Auditor permissions (backport #41659) (#41661) * fix: allow Auditor to select a company (cherry picked from commit 06401cc84fd0ffe8ab7e1cf7dec68544af72a3aa) * fix: allow Auditor to read a Fiscal Year (cherry picked from commit eaa4efbc457678155efe710b1fc6bd12516dcb62) --------- Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com> --- erpnext/accounts/doctype/fiscal_year/fiscal_year.json | 6 +++++- erpnext/setup/doctype/company/company.json | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/fiscal_year/fiscal_year.json b/erpnext/accounts/doctype/fiscal_year/fiscal_year.json index fb997847448..66db37fe13b 100644 --- a/erpnext/accounts/doctype/fiscal_year/fiscal_year.json +++ b/erpnext/accounts/doctype/fiscal_year/fiscal_year.json @@ -82,7 +82,7 @@ "icon": "fa fa-calendar", "idx": 1, "links": [], - "modified": "2024-01-30 12:35:38.645968", + "modified": "2024-05-27 17:29:55.560840", "modified_by": "Administrator", "module": "Accounts", "name": "Fiscal Year", @@ -127,6 +127,10 @@ { "read": 1, "role": "Stock Manager" + }, + { + "read": 1, + "role": "Auditor" } ], "show_name_in_global_search": 1, diff --git a/erpnext/setup/doctype/company/company.json b/erpnext/setup/doctype/company/company.json index 674805980f5..b2d6af03a10 100644 --- a/erpnext/setup/doctype/company/company.json +++ b/erpnext/setup/doctype/company/company.json @@ -795,7 +795,7 @@ "image_field": "company_logo", "is_tree": 1, "links": [], - "modified": "2024-05-16 12:39:54.694232", + "modified": "2024-05-27 17:32:49.057386", "modified_by": "Administrator", "module": "Setup", "name": "Company", @@ -851,6 +851,10 @@ "role": "Accounts Manager", "share": 1, "write": 1 + }, + { + "role": "Auditor", + "select": 1 } ], "show_name_in_global_search": 1,