mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-18 00:48:42 +00:00
* fix(crm): using `get_list` instead of `get_all` in `get_opportunities` (#56463)
(cherry picked from commit 9b4c8a8d7f)
# Conflicts:
# erpnext/crm/doctype/prospect/prospect.py
* chore: resolve conflict
---------
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -136,7 +136,7 @@ def make_opportunity(source_name, target_doc=None):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_opportunities(prospect):
|
def get_opportunities(prospect):
|
||||||
return frappe.get_all(
|
return frappe.get_list(
|
||||||
"Opportunity",
|
"Opportunity",
|
||||||
filters={"opportunity_from": "Prospect", "party_name": prospect},
|
filters={"opportunity_from": "Prospect", "party_name": prospect},
|
||||||
fields=[
|
fields=[
|
||||||
|
|||||||
Reference in New Issue
Block a user