From 30ba950abd5fdf2564939d56680e3218e3584f19 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 10:23:04 +0000 Subject: [PATCH] fix(crm): using `get_list` instead of `get_all` in `get_opportunities` (backport #56463) (#56466) * fix(crm): using `get_list` instead of `get_all` in `get_opportunities` (#56463) (cherry picked from commit 9b4c8a8d7fdec17de13794bdfa7f9e125b3bb37d) # Conflicts: # erpnext/crm/doctype/prospect/prospect.py * chore: resolve conflict --------- Co-authored-by: Diptanil Saha --- erpnext/crm/doctype/prospect/prospect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/prospect/prospect.py b/erpnext/crm/doctype/prospect/prospect.py index 7ecbe637f04..02bd2a33be4 100644 --- a/erpnext/crm/doctype/prospect/prospect.py +++ b/erpnext/crm/doctype/prospect/prospect.py @@ -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=[