[fix] sales_partner.js, fixes #7553

This commit is contained in:
Rushabh Mehta
2017-01-21 16:57:24 +05:30
parent 2a660fb695
commit 397e508fc0
3 changed files with 6 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ frappe.ui.form.on('Sales Partner', {
refresh: function(frm) {
frappe.dynamic_link = {doc: frm.doc, fieldname: 'name', doctype: 'Sales Person'}
if(doc.__islocal){
if(frm.doc.__islocal){
hide_field(['address_html', 'contact_html']);
erpnext.utils.clear_address_and_contact(frm);
}