[fix] Clear addressed and contacts on a new form

This commit is contained in:
Nabin Hait
2015-10-30 14:43:13 +05:30
parent baefec4498
commit 915778fb69
5 changed files with 11 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ frappe.ui.form.on("Customer", "refresh", function(frm) {
if(!frm.doc.__islocal) {
erpnext.utils.render_address_and_contact(frm);
} else {
erpnext.utils.clear_address_and_contact(frm);
}
var grid = cur_frm.get_field("sales_team").grid;