diff --git a/erpnext/buying/doctype/supplier/supplier_dashboard.py b/erpnext/buying/doctype/supplier/supplier_dashboard.py index 3bd306e659195f462ddf01ef7ebcff30d0a16990..57bde90775d279b4fe9675e398e7ac860969b40a 100644 --- a/erpnext/buying/doctype/supplier/supplier_dashboard.py +++ b/erpnext/buying/doctype/supplier/supplier_dashboard.py @@ -9,6 +9,7 @@ def get_data(): ), "fieldname": "supplier", "non_standard_fieldnames": {"Payment Entry": "party", "Bank Account": "party"}, + "dynamic_links": {"party": ["Supplier", "party_type"]}, "transactions": [ {"label": _("Procurement"), "items": ["Request for Quotation", "Supplier Quotation"]}, {"label": _("Orders"), "items": ["Purchase Order", "Purchase Receipt", "Purchase Invoice"]}, diff --git a/erpnext/selling/doctype/customer/customer_dashboard.py b/erpnext/selling/doctype/customer/customer_dashboard.py index 1158a8afc8d1899547a1c66e9fe7aded49982d99..997953f33b75dc2713616106ab0119dd1a15a054 100644 --- a/erpnext/selling/doctype/customer/customer_dashboard.py +++ b/erpnext/selling/doctype/customer/customer_dashboard.py @@ -16,10 +16,8 @@ def get_data(): "Bank Account": "party", }, "dynamic_links": { - "party_name": { - "Quotation": ["Customer", "quotation_to"], - "Opportunity": ["Customer", "opportunity_from"], - } + "party_name": ["Customer", "quotation_to"], + "party": ["Customer", "party_type"], }, "transactions": [ {"label": _("Pre Sales"), "items": ["Opportunity", "Quotation", "Contract"]},