From 7001e0a8208c0d9d03981267e7d8489e8395cab0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 19:49:42 +0530 Subject: [PATCH] fix(accounts): Allow setting Number of new Cost Center (backport #40212) (#40314) fix(accounts): Allow setting Number of new Cost Center (#40212) (cherry picked from commit a93d14b3f7a1a9ab1968518dc88b3968aac7447e) Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com> --- erpnext/accounts/doctype/cost_center/cost_center.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/cost_center/cost_center.json b/erpnext/accounts/doctype/cost_center/cost_center.json index 7cbb290947e..2e66db7bcf3 100644 --- a/erpnext/accounts/doctype/cost_center/cost_center.json +++ b/erpnext/accounts/doctype/cost_center/cost_center.json @@ -41,7 +41,7 @@ "in_list_view": 1, "in_standard_filter": 1, "label": "Cost Center Number", - "read_only": 1 + "read_only_depends_on": "eval:!doc.__islocal" }, { "fieldname": "parent_cost_center", @@ -170,4 +170,4 @@ "sort_field": "modified", "sort_order": "ASC", "states": [] -} \ No newline at end of file +}