From 9f98296c9cf4c4240fc3f1d06e482a860a725cf3 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 1 Jun 2016 16:21:43 +0530 Subject: [PATCH] minor fix --- erpnext/buying/doctype/supplier/supplier.js | 2 -- erpnext/selling/doctype/customer/customer.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js index c55b999d6a..f23885a758 100644 --- a/erpnext/buying/doctype/supplier/supplier.js +++ b/erpnext/buying/doctype/supplier/supplier.js @@ -24,8 +24,6 @@ frappe.ui.form.on("Supplier", { unhide_field(['address_html','contact_html']); erpnext.utils.render_address_and_contact(frm); } - - frm.events.add_custom_buttons(frm); }, }); diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index 26804703cb..3556be757d 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -27,8 +27,6 @@ frappe.ui.form.on("Customer", { var grid = cur_frm.get_field("sales_team").grid; grid.set_column_disp("allocated_amount", false); grid.set_column_disp("incentives", false); - - frm.events.add_custom_buttons(frm); }, validate: function(frm) { if(frm.doc.lead_name) frappe.model.clear_doc("Lead", frm.doc.lead_name);