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

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
fix(crm): using `get_list` instead of `get_all` in `get_opportunities` (#56463)
This commit is contained in:
mergify[bot]
2026-06-25 10:41:41 +00:00
committed by GitHub
parent 414b3665c1
commit 28e4bca4f2

View File

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