fix(crm): using get_list instead of get_all in get_opportunities (#56463)

This commit is contained in:
Diptanil Saha
2026-06-25 15:30:44 +05:30
committed by GitHub
parent 7f58c7f0ac
commit 9b4c8a8d7f

View File

@@ -144,7 +144,7 @@ def make_opportunity(source_name: str, target_doc: str | Document | None = None)
@frappe.whitelist()
def get_opportunities(prospect: str):
return frappe.get_all(
return frappe.get_list(
"Opportunity",
filters={"opportunity_from": "Prospect", "party_name": prospect},
fields=[