Skip to content

Commit

Permalink
Merge pull request #42064 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-41979

fix: dynamic_link for party in customer and supplier dashboard (backport #41979)
  • Loading branch information
vorasmit committed Jun 28, 2024
2 parents 21bf7fd + 6de7a8d commit cc9857a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions erpnext/buying/doctype/supplier/supplier_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]},
Expand Down
5 changes: 4 additions & 1 deletion erpnext/selling/doctype/customer/customer_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def get_data():
"Bank Account": "party",
"Subscription": "party",
},
"dynamic_links": {"party_name": ["Customer", "quotation_to"]},
"dynamic_links": {
"party_name": ["Customer", "quotation_to"],
"party": ["Customer", "party_type"],
},
"transactions": [
{"label": _("Pre Sales"), "items": ["Opportunity", "Quotation"]},
{"label": _("Orders"), "items": ["Sales Order", "Delivery Note", "Sales Invoice"]},
Expand Down

0 comments on commit cc9857a

Please sign in to comment.