feat: add Lead to Adresse And contact report

This commit is contained in:
Florian HENRY 2023-06-30 15:11:45 +02:00
parent fa3ab678e1
commit da72bd9819
2 changed files with 2 additions and 1 deletions

View File

@ -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"],
}
}
}

View File

@ -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]