mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-09 15:29:30 +00:00
fix(stock): allow parent item groups in filters (#58839)
This commit is contained in:
@@ -21,6 +21,7 @@ import "./templates/item_quick_entry.html";
|
||||
import "./utils/contact_address_quick_entry";
|
||||
import "./utils/customer_quick_entry";
|
||||
import "./utils/supplier_quick_entry";
|
||||
import "./utils/item_quick_entry";
|
||||
import "./call_popup/call_popup";
|
||||
import "./utils/dimension_tree_filter";
|
||||
import "./utils/ledger_preview.js";
|
||||
|
||||
8
erpnext/public/js/utils/item_quick_entry.js
Normal file
8
erpnext/public/js/utils/item_quick_entry.js
Normal file
@@ -0,0 +1,8 @@
|
||||
frappe.provide("frappe.ui.form");
|
||||
|
||||
frappe.ui.form.ItemQuickEntryForm = class ItemQuickEntryForm extends frappe.ui.form.QuickEntryForm {
|
||||
render_dialog() {
|
||||
super.render_dialog();
|
||||
this.set_query("item_group", () => ({ filters: { is_group: 0 } }));
|
||||
}
|
||||
};
|
||||
@@ -73,6 +73,7 @@ frappe.ui.form.on("Item", {
|
||||
},
|
||||
|
||||
setup: function (frm) {
|
||||
frm.set_query("item_group", () => ({ filters: { is_group: 0 } }));
|
||||
frm.set_query("allowed_companies", () => ({
|
||||
query: "erpnext.stock.doctype.company_restriction.company_restriction.company_query",
|
||||
}));
|
||||
|
||||
@@ -197,7 +197,6 @@
|
||||
"in_preview": 1,
|
||||
"in_standard_filter": 1,
|
||||
"label": "Item Group",
|
||||
"link_filters": "[[\"Item Group\",\"is_group\",\"=\",0]]",
|
||||
"oldfieldname": "item_group",
|
||||
"oldfieldtype": "Link",
|
||||
"options": "Item Group",
|
||||
@@ -1118,7 +1117,7 @@
|
||||
"image_field": "image",
|
||||
"links": [],
|
||||
"make_attachments_public": 1,
|
||||
"modified": "2026-09-04 10:08:30.115003",
|
||||
"modified": "2026-09-07 19:53:27.830229",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item",
|
||||
|
||||
Reference in New Issue
Block a user