minor fix

This commit is contained in:
Nabin Hait 2016-06-01 16:21:43 +05:30
parent 7db1793543
commit 9f98296c9c
2 changed files with 0 additions and 4 deletions

View File

@ -24,8 +24,6 @@ frappe.ui.form.on("Supplier", {
unhide_field(['address_html','contact_html']); unhide_field(['address_html','contact_html']);
erpnext.utils.render_address_and_contact(frm); erpnext.utils.render_address_and_contact(frm);
} }
frm.events.add_custom_buttons(frm);
}, },
}); });

View File

@ -27,8 +27,6 @@ frappe.ui.form.on("Customer", {
var grid = cur_frm.get_field("sales_team").grid; var grid = cur_frm.get_field("sales_team").grid;
grid.set_column_disp("allocated_amount", false); grid.set_column_disp("allocated_amount", false);
grid.set_column_disp("incentives", false); grid.set_column_disp("incentives", false);
frm.events.add_custom_buttons(frm);
}, },
validate: function(frm) { validate: function(frm) {
if(frm.doc.lead_name) frappe.model.clear_doc("Lead", frm.doc.lead_name); if(frm.doc.lead_name) frappe.model.clear_doc("Lead", frm.doc.lead_name);