From d791fa7460932bf8a28b9d9b1c8511c600cf6886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CKhushi?= <“khushirawat.sophia@gamil.com”> Date: Tue, 9 Apr 2024 11:18:33 +0530 Subject: [PATCH] fix: by default company field value is fetched from parent account --- erpnext/accounts/doctype/account/account.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.json b/erpnext/accounts/doctype/account/account.json index 63911f55386..0f17f8fcd7f 100644 --- a/erpnext/accounts/doctype/account/account.json +++ b/erpnext/accounts/doctype/account/account.json @@ -65,6 +65,8 @@ "label": "Is Group" }, { + "fetch_from": "parent_account.company", + "fetch_if_empty": 1, "fieldname": "company", "fieldtype": "Link", "in_standard_filter": 1, @@ -193,7 +195,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2024-01-10 04:57:33.681676", + "modified": "2024-04-09 11:08:23.994983", "modified_by": "Administrator", "module": "Accounts", "name": "Account", @@ -255,4 +257,4 @@ "sort_order": "ASC", "states": [], "track_changes": 1 -} +} \ No newline at end of file