From da72bd98196623fd2246a1a9129991efbb65ab13 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Fri, 30 Jun 2023 15:11:45 +0200 Subject: [PATCH] feat: add Lead to Adresse And contact report --- .../selling/report/address_and_contacts/address_and_contacts.js | 2 +- .../selling/report/address_and_contacts/address_and_contacts.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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]