[minor] [query] sales person

This commit is contained in:
Anand Doshi 2013-07-23 15:16:50 +05:30
parent 1dc95ed865
commit ed69892a0a

View File

@ -112,6 +112,14 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
}
});
}
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) {