From cfd18d4e03a3af51d3fd2a5b484803d79b9356fb Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Tue, 14 May 2019 14:57:22 +0530 Subject: [PATCH] fix: Lead and customer dashboard fixes --- erpnext/crm/doctype/lead/lead_dashboard.py | 7 +++++-- erpnext/selling/doctype/customer/customer_dashboard.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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': [ {