link the address and contact with the sales partner (#11592)

This commit is contained in:
Manas Solanki 2017-11-16 18:10:04 +05:30 committed by Nabin Hait
parent f7e6934d7c
commit bb34c57603

View File

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