mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 23:18:40 +00:00
Merge pull request #57542 from frappe/mergify/bp/version-16-hotfix/pr-57540
fix(setup): scope manufacturing warehouse filters to company (backport #57540)
This commit is contained in:
@@ -69,6 +69,17 @@ frappe.ui.form.on("Company", {
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
["default_wip_warehouse", "default_fg_warehouse", "default_scrap_warehouse"].forEach((fieldname) => {
|
||||
frm.set_query(fieldname, function (doc) {
|
||||
return {
|
||||
filters: {
|
||||
company: doc.name,
|
||||
is_group: 0,
|
||||
},
|
||||
};
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
company_name: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user