* 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:
@@ -13,10 +13,11 @@ frappe.ui.form.on("Warehouse", {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
frm.set_query("parent_warehouse", function () {
|
frm.set_query("parent_warehouse", function (doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
is_group: 1,
|
is_group: 1,
|
||||||
|
company: doc.company,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user