From 87ba19647311c1b7b7b8aa7724b1bd773dfce440 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:19:57 +0530 Subject: [PATCH] fix: filter parent warehouses not showing (backport #35897) (#35899) fix: filter parent warehouses not showing (#35897) (cherry picked from commit af418d2342281c5a1fe6291971ee94e2eca42b3b) Co-authored-by: HLD --- 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,