diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js index e04ac2ce302..a27244d1528 100644 --- a/erpnext/buying/doctype/supplier/supplier.js +++ b/erpnext/buying/doctype/supplier/supplier.js @@ -139,14 +139,6 @@ 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/buying/doctype/supplier/supplier.json b/erpnext/buying/doctype/supplier/supplier.json index c70b3e4081a..ee3c9c840f0 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -165,6 +165,7 @@ "in_list_view": 1, "in_standard_filter": 1, "label": "Supplier Group", + "link_filters": "[[\"Supplier Group\",\"is_group\",\"=\",0]]", "oldfieldname": "supplier_type", "oldfieldtype": "Link", "options": "Supplier Group" @@ -485,7 +486,7 @@ "link_fieldname": "party" } ], - "modified": "2024-05-08 18:02:57.342931", + "modified": "2026-02-06 12:58:01.398824", "modified_by": "Administrator", "module": "Buying", "name": "Supplier", @@ -551,4 +552,4 @@ "states": [], "title_field": "supplier_name", "track_changes": 1 -} \ No newline at end of file +} diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 978a7b41d69..89dba460809 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -30,7 +30,10 @@ frappe.ui.form.on("Material Request", { frm.set_query("from_warehouse", "items", function (doc) { return { - filters: { company: doc.company }, + filters: { + company: doc.company, + is_group: 0, + }, }; }); @@ -62,19 +65,28 @@ frappe.ui.form.on("Material Request", { frm.set_query("warehouse", "items", function (doc) { return { - filters: { company: doc.company }, + filters: { + company: doc.company, + is_group: 0, + }, }; }); frm.set_query("set_warehouse", function (doc) { return { - filters: { company: doc.company }, + filters: { + company: doc.company, + is_group: 0, + }, }; }); frm.set_query("set_from_warehouse", function (doc) { return { - filters: { company: doc.company }, + filters: { + company: doc.company, + is_group: 0, + }, }; });