From a5ef25a47d4106aa379de97bc8b62c249abf48a7 Mon Sep 17 00:00:00 2001 From: HLD Date: Tue, 27 Jun 2023 15:47:52 +0800 Subject: [PATCH] fix: filter parent warehouses not showing (#35897) (cherry picked from commit af418d2342281c5a1fe6291971ee94e2eca42b3b) --- erpnext/stock/doctype/warehouse/warehouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/warehouse/warehouse.js b/erpnext/stock/doctype/warehouse/warehouse.js index 87a23efc590b..746a1cbaf17b 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.js +++ b/erpnext/stock/doctype/warehouse/warehouse.js @@ -13,7 +13,7 @@ frappe.ui.form.on("Warehouse", { }; }); - frm.set_query("parent_warehouse", function () { + frm.set_query("parent_warehouse", function (doc) { return { filters: { is_group: 1,