diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js index a27244d1528..e04ac2ce302 100644 --- a/erpnext/buying/doctype/supplier/supplier.js +++ b/erpnext/buying/doctype/supplier/supplier.js @@ -139,6 +139,14 @@ frappe.ui.form.on("Supplier", { // indicators erpnext.utils.set_party_dashboard_indicators(frm); } + + frm.set_query("supplier_group", () => { + return { + filters: { + is_group: 0, + }, + }; + }); }, get_supplier_group_details: function (frm) { frappe.call({ diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index f5a2009e551..1b75bd1fbfc 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -200,6 +200,22 @@ frappe.ui.form.on("Customer", { var grid = cur_frm.get_field("sales_team").grid; grid.set_column_disp("allocated_amount", false); grid.set_column_disp("incentives", false); + + frm.set_query("customer_group", () => { + return { + filters: { + is_group: 0, + }, + }; + }); + + frm.set_query("territory", () => { + return { + filters: { + is_group: 0, + }, + }; + }); }, validate: function (frm) { if (frm.doc.lead_name) frappe.model.clear_doc("Lead", frm.doc.lead_name); diff --git a/erpnext/setup/doctype/customer_group/customer_group.json b/erpnext/setup/doctype/customer_group/customer_group.json index 4c36bc77abe..7e740aacbc4 100644 --- a/erpnext/setup/doctype/customer_group/customer_group.json +++ b/erpnext/setup/doctype/customer_group/customer_group.json @@ -139,7 +139,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2023-06-02 13:40:34.435822", + "modified": "2025-12-02 13:58:03.378607", "modified_by": "Administrator", "module": "Setup", "name": "Customer Group", @@ -208,9 +208,11 @@ "share": 1 } ], + "row_format": "Dynamic", "search_fields": "parent_customer_group", "show_name_in_global_search": 1, "sort_field": "modified", "sort_order": "DESC", - "states": [] -} \ No newline at end of file + "states": [], + "translated_doctype": 1 +} diff --git a/erpnext/setup/doctype/item_group/item_group.json b/erpnext/setup/doctype/item_group/item_group.json index 7c9233fa1f3..763712a70ca 100644 --- a/erpnext/setup/doctype/item_group/item_group.json +++ b/erpnext/setup/doctype/item_group/item_group.json @@ -135,7 +135,7 @@ "is_tree": 1, "links": [], "max_attachments": 3, - "modified": "2024-01-30 14:08:38.485616", + "modified": "2025-12-02 13:58:30.018021", "modified_by": "Administrator", "module": "Setup", "name": "Item Group", @@ -202,9 +202,11 @@ "share": 1 } ], + "row_format": "Dynamic", "search_fields": "parent_item_group", "show_name_in_global_search": 1, "sort_field": "modified", "sort_order": "DESC", - "states": [] -} \ No newline at end of file + "states": [], + "translated_doctype": 1 +} diff --git a/erpnext/setup/doctype/supplier_group/supplier_group.json b/erpnext/setup/doctype/supplier_group/supplier_group.json index b3ed608cd03..c93572fd3a3 100644 --- a/erpnext/setup/doctype/supplier_group/supplier_group.json +++ b/erpnext/setup/doctype/supplier_group/supplier_group.json @@ -41,6 +41,7 @@ { "bold": 1, "default": "0", + "description": "Only leaf nodes are allowed in transaction", "fieldname": "is_group", "fieldtype": "Check", "in_list_view": 1, @@ -107,7 +108,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2022-12-24 11:16:12.486719", + "modified": "2025-12-02 13:57:57.814686", "modified_by": "Administrator", "module": "Setup", "name": "Supplier Group", @@ -168,8 +169,10 @@ "share": 1 } ], + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "modified", "sort_order": "ASC", - "states": [] -} \ No newline at end of file + "states": [], + "translated_doctype": 1 +} diff --git a/erpnext/setup/doctype/territory/territory.json b/erpnext/setup/doctype/territory/territory.json index c3a49933746..8aa6d1e204c 100644 --- a/erpnext/setup/doctype/territory/territory.json +++ b/erpnext/setup/doctype/territory/territory.json @@ -46,6 +46,7 @@ { "bold": 1, "default": "0", + "description": "Only leaf nodes are allowed in transaction", "fieldname": "is_group", "fieldtype": "Check", "in_list_view": 1, @@ -123,7 +124,7 @@ "idx": 1, "is_tree": 1, "links": [], - "modified": "2022-12-24 11:16:39.964956", + "modified": "2025-12-02 13:58:55.190485", "modified_by": "Administrator", "module": "Setup", "name": "Territory", @@ -186,9 +187,11 @@ "share": 1 } ], + "row_format": "Dynamic", "search_fields": "parent_territory,territory_manager", "show_name_in_global_search": 1, "sort_field": "modified", "sort_order": "DESC", - "states": [] -} \ No newline at end of file + "states": [], + "translated_doctype": 1 +} diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index dd89d204cfb..2cea6463592 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js @@ -226,6 +226,13 @@ frappe.ui.form.on("Item", { }); frm.toggle_reqd("customer", frm.doc.is_customer_provided_item ? 1 : 0); + frm.set_query("item_group", () => { + return { + filters: { + is_group: 0, + }, + }; + }); }, validate: function (frm) {