mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix(buying): add supplier group link filters in field level
(cherry picked from commit cfdc554a19)
# Conflicts:
# erpnext/buying/doctype/supplier/supplier.json
This commit is contained in:
@@ -139,14 +139,6 @@ frappe.ui.form.on("Supplier", {
|
|||||||
// indicators
|
// indicators
|
||||||
erpnext.utils.set_party_dashboard_indicators(frm);
|
erpnext.utils.set_party_dashboard_indicators(frm);
|
||||||
}
|
}
|
||||||
|
|
||||||
frm.set_query("supplier_group", () => {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
is_group: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
get_supplier_group_details: function (frm) {
|
get_supplier_group_details: function (frm) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
|||||||
@@ -165,6 +165,7 @@
|
|||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"in_standard_filter": 1,
|
"in_standard_filter": 1,
|
||||||
"label": "Supplier Group",
|
"label": "Supplier Group",
|
||||||
|
"link_filters": "[[\"Supplier Group\",\"is_group\",\"=\",0]]",
|
||||||
"oldfieldname": "supplier_type",
|
"oldfieldname": "supplier_type",
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"options": "Supplier Group"
|
"options": "Supplier Group"
|
||||||
@@ -485,7 +486,11 @@
|
|||||||
"link_fieldname": "party"
|
"link_fieldname": "party"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
<<<<<<< HEAD
|
||||||
"modified": "2024-05-08 18:02:57.342931",
|
"modified": "2024-05-08 18:02:57.342931",
|
||||||
|
=======
|
||||||
|
"modified": "2026-02-06 12:58:01.398824",
|
||||||
|
>>>>>>> cfdc554a19 (fix(buying): add supplier group link filters in field level)
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Supplier",
|
"name": "Supplier",
|
||||||
|
|||||||
Reference in New Issue
Block a user