[minor] [query] sales person
diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js
index a03b289..e3e5f87 100644
--- a/selling/doctype/sales_common/sales_common.js
+++ b/selling/doctype/sales_common/sales_common.js
@@ -112,6 +112,14 @@
}
});
}
+
+ if(this.frm.fields_dict.sales_team && this.frm.fields_dict.sales_team.grid.get_field("sales_person")) {
+ this.frm.set_query("sales_person", "sales_team", function() {
+ return {
+ filters: { is_group: "No" }
+ };
+ });
+ }
},
refresh: function(doc) {