diff --git a/erpnext/accounts/doctype/account/account.json b/erpnext/accounts/doctype/account/account.json index 881cf1f40fd..a009a758a1b 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, diff --git a/erpnext/public/js/utils/dimension_tree_filter.js b/erpnext/public/js/utils/dimension_tree_filter.js index 36c0f1b51ae..a97165686ad 100644 --- a/erpnext/public/js/utils/dimension_tree_filter.js +++ b/erpnext/public/js/utils/dimension_tree_filter.js @@ -22,6 +22,7 @@ erpnext.accounts.dimensions = { }); me.default_dimensions = r.message[1]; me.setup_filters(frm, doctype); + me.update_dimension(frm, doctype); }, }); },