fix(ux): add non-group warehouse filter
diff --git a/erpnext/selling/doctype/sales_order/sales_order.js b/erpnext/selling/doctype/sales_order/sales_order.js
index 602bc8c..5d43a07 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.js
+++ b/erpnext/selling/doctype/sales_order/sales_order.js
@@ -195,7 +195,14 @@
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',