diff --git a/erpnext/crm/doctype/lead/lead_dashboard.py b/erpnext/crm/doctype/lead/lead_dashboard.py index b33f12f5089..69d8ca70926 100644 --- a/erpnext/crm/doctype/lead/lead_dashboard.py +++ b/erpnext/crm/doctype/lead/lead_dashboard.py @@ -5,8 +5,11 @@ def get_data(): return { 'fieldname': 'lead', 'non_standard_fieldnames': { - 'Quotation': 'customer_name', - 'Opportunity': 'customer_name' + 'Quotation': 'party_name', + 'Opportunity': 'party_name' + }, + 'dynamic_links': { + 'party_name': ['Lead', 'quotation_to'] }, 'transactions': [ { diff --git a/erpnext/selling/doctype/customer/customer_dashboard.py b/erpnext/selling/doctype/customer/customer_dashboard.py index 67c69339ea9..075ad4eb60c 100644 --- a/erpnext/selling/doctype/customer/customer_dashboard.py +++ b/erpnext/selling/doctype/customer/customer_dashboard.py @@ -7,8 +7,11 @@ def get_data(): 'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'), 'fieldname': 'customer', 'non_standard_fieldnames': { - 'Quotation': 'customer_name', - 'Opportunity': 'customer_name' + 'Quotation': 'party_name', + 'Opportunity': 'party_name' + }, + 'dynamic_links': { + 'party_name': ['Customer', 'quotation_to'] }, 'transactions': [ {