mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 19:25:16 +00:00
fix: show current company warehouse only in get material from bom MR
(cherry picked from commit 3271eaaf0e)
This commit is contained in:
@@ -332,6 +332,9 @@ frappe.ui.form.on("Material Request", {
|
|||||||
label: __("For Warehouse"),
|
label: __("For Warehouse"),
|
||||||
options: "Warehouse",
|
options: "Warehouse",
|
||||||
reqd: 1,
|
reqd: 1,
|
||||||
|
get_query: function () {
|
||||||
|
return { filters: { company: frm.doc.company } };
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{ fieldname: "qty", fieldtype: "Float", label: __("Quantity"), reqd: 1, default: 1 },
|
{ fieldname: "qty", fieldtype: "Float", label: __("Quantity"), reqd: 1, default: 1 },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user