mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
fix(ux): add non-group warehouse filter
This commit is contained in:
@@ -195,7 +195,14 @@ frappe.ui.form.on("Sales Order", {
|
|||||||
label: __('Warehouse'),
|
label: __('Warehouse'),
|
||||||
options: 'Warehouse',
|
options: 'Warehouse',
|
||||||
reqd: 1,
|
reqd: 1,
|
||||||
in_list_view: 1
|
in_list_view: 1,
|
||||||
|
get_query: function () {
|
||||||
|
return {
|
||||||
|
filters: [
|
||||||
|
["Warehouse", "is_group", "!=", 1]
|
||||||
|
]
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldtype: 'Float',
|
fieldtype: 'Float',
|
||||||
|
|||||||
Reference in New Issue
Block a user