mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
attach get_query in onload of communication, address and contact
This commit is contained in:
@@ -14,6 +14,9 @@ cur_frm.cscript.onload = function(doc) {
|
||||
company_name like \"%%%s\") \
|
||||
order by lead_name asc limit 50";
|
||||
};
|
||||
|
||||
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
|
||||
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;
|
||||
}
|
||||
|
||||
cur_frm.cscript.refresh = function(doc, dt, dn) {
|
||||
@@ -136,8 +139,4 @@ cur_frm.cscript.contact = function(doc, dt, dn) {
|
||||
cur_frm.cscript.hide_dialog = function() {
|
||||
if(cur_frm.communication_list)
|
||||
cur_frm.communication_list.run();
|
||||
}
|
||||
|
||||
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
|
||||
|
||||
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;
|
||||
}
|
||||
Reference in New Issue
Block a user