Skip to content

Commit

Permalink
fix(Expense Claim): allow editing company and department (backport #2498
Browse files Browse the repository at this point in the history
) (#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 09f65da)

Co-authored-by: Vimal <[email protected]>
  • Loading branch information
mergify[bot] and i-am-vimal authored Dec 17, 2024
1 parent 2304be5 commit 7b350f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hrms/hr/doctype/expense_claim/expense_claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -214,14 +214,14 @@
},
{
"fetch_from": "employee.company",
"fetch_if_empty": 1,
"fieldname": "company",
"fieldtype": "Link",
"in_standard_filter": 1,
"label": "Company",
"oldfieldname": "company",
"oldfieldtype": "Link",
"options": "Company",
"read_only": 1,
"reqd": 1
},
{
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 7b350f0

Please sign in to comment.