fix(ux): add non-group warehouse filter

This commit is contained in:
Sagar Sharma 2023-05-25 11:49:47 +05:30
parent 565322daba
commit fefd788eb5

View File

@ -195,7 +195,14 @@ frappe.ui.form.on("Sales Order", {
label: __('Warehouse'),
options: 'Warehouse',
reqd: 1,
in_list_view: 1
in_list_view: 1,
get_query: function () {
return {
filters: [
["Warehouse", "is_group", "!=", 1]
]
};
},
},
{
fieldtype: 'Float',