fix: show current company warehouse only in get material from bom MR

(cherry picked from commit 3271eaaf0e)
This commit is contained in:
Mihir Kandoi
2025-11-19 16:13:56 +05:30
committed by Mergify
parent 533a2dbc32
commit 1d6e3e4e7d

View File

@@ -332,6 +332,9 @@ frappe.ui.form.on("Material Request", {
label: __("For Warehouse"),
options: "Warehouse",
reqd: 1,
get_query: function () {
return { filters: { company: frm.doc.company } };
},
},
{ fieldname: "qty", fieldtype: "Float", label: __("Quantity"), reqd: 1, default: 1 },
{