diff --git a/erpnext/selling/report/address_and_contacts/address_and_contacts.js b/erpnext/selling/report/address_and_contacts/address_and_contacts.js index ef87586f66..8aa14d1998 100644 --- a/erpnext/selling/report/address_and_contacts/address_and_contacts.js +++ b/erpnext/selling/report/address_and_contacts/address_and_contacts.js @@ -13,7 +13,7 @@ frappe.query_reports["Address And Contacts"] = { "get_query": function() { return { "filters": { - "name": ["in","Customer,Supplier,Sales Partner"], + "name": ["in","Customer,Supplier,Sales Partner,Lead"], } } } diff --git a/erpnext/selling/report/address_and_contacts/address_and_contacts.py b/erpnext/selling/report/address_and_contacts/address_and_contacts.py index 9a1cfda847..4542bdff43 100644 --- a/erpnext/selling/report/address_and_contacts/address_and_contacts.py +++ b/erpnext/selling/report/address_and_contacts/address_and_contacts.py @@ -130,6 +130,7 @@ def get_party_group(party_type): "Customer": "customer_group", "Supplier": "supplier_group", "Sales Partner": "partner_type", + "Lead": "status", } return group[party_type]