Skip to content

Commit

Permalink
fix: filter parent warehouses not showing (backport #35897) (#35900)
Browse files Browse the repository at this point in the history
* fix: filter parent warehouses not showing (#35897)

(cherry picked from commit af418d2)

* chore: add company filter for parent warehouse

---------

Co-authored-by: HLD <hanglaoda@hotmail.com>
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
3 people authored Jun 27, 2023
1 parent 4dd088c commit bcfd770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/stock/doctype/warehouse/warehouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
});
Expand Down

0 comments on commit bcfd770

Please sign in to comment.