Merge pull request #4281 from nabinhait/address_fix

[fix] Clear addressed and contacts on a new form
This commit is contained in:
Rushabh Mehta
2015-11-06 11:02:31 +05:30
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;