From 7b350f0ae06310247f1780d72417e509f0a4f53d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:50:17 +0530 Subject: [PATCH] fix(Expense Claim): allow editing company and department (backport #2498) (#2515) * fix: remove read only for company * fix: remove read only for department and fetch company and department only when empty (cherry picked from commit 09f65da7fc298e755071041e5b18eb9e71837fb5) Co-authored-by: Vimal --- hrms/hr/doctype/expense_claim/expense_claim.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hrms/hr/doctype/expense_claim/expense_claim.json b/hrms/hr/doctype/expense_claim/expense_claim.json index 82e23ee728..02186e86e3 100644 --- a/hrms/hr/doctype/expense_claim/expense_claim.json +++ b/hrms/hr/doctype/expense_claim/expense_claim.json @@ -89,11 +89,11 @@ }, { "fetch_from": "employee.department", + "fetch_if_empty": 1, "fieldname": "department", "fieldtype": "Link", "label": "Department", - "options": "Department", - "read_only": 1 + "options": "Department" }, { "fieldname": "column_break_5", @@ -214,6 +214,7 @@ }, { "fetch_from": "employee.company", + "fetch_if_empty": 1, "fieldname": "company", "fieldtype": "Link", "in_standard_filter": 1, @@ -221,7 +222,6 @@ "oldfieldname": "company", "oldfieldtype": "Link", "options": "Company", - "read_only": 1, "reqd": 1 }, { @@ -390,7 +390,7 @@ "idx": 1, "is_submittable": 1, "links": [], - "modified": "2024-10-09 14:16:06.715586", + "modified": "2024-12-16 16:16:47.975814", "modified_by": "Administrator", "module": "HR", "name": "Expense Claim",