mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
link the address and contact with the sales partner (#11592)
This commit is contained in:
committed by
Nabin Hait
parent
f7e6934d7c
commit
bb34c57603
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
frappe.ui.form.on('Sales Partner', {
|
frappe.ui.form.on('Sales Partner', {
|
||||||
refresh: function(frm) {
|
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){
|
if(frm.doc.__islocal){
|
||||||
hide_field(['address_html', 'contact_html', 'address_contacts']);
|
hide_field(['address_html', 'contact_html', 'address_contacts']);
|
||||||
|
|||||||
Reference in New Issue
Block a user