fix: filter parent warehouses not showing (backport #35897) (#35900)

* fix: filter parent warehouses not showing (#35897)

(cherry picked from commit af418d2342)

* chore: add company filter for parent warehouse

---------

Co-authored-by: HLD <hanglaoda@hotmail.com>
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot]
2023-06-27 14:27:33 +05:30
committed by GitHub
parent 4dd088cba4
commit bcfd7708f2

View File

@@ -13,10 +13,11 @@ frappe.ui.form.on("Warehouse", {
};
});
frm.set_query("parent_warehouse", function () {
frm.set_query("parent_warehouse", function (doc) {
return {
filters: {
is_group: 1,
company: doc.company,
},
};
});