fix: include contacts with deal
This commit is contained in:
parent
67f38c993f
commit
f1f6c91149
@ -18,4 +18,11 @@ def get_deal(name):
|
|||||||
frappe.throw(_("Deal not found"), frappe.DoesNotExistError)
|
frappe.throw(_("Deal not found"), frappe.DoesNotExistError)
|
||||||
deal = deal.pop()
|
deal = deal.pop()
|
||||||
|
|
||||||
|
|
||||||
|
deal["contacts"] = frappe.get_all(
|
||||||
|
"CRM Contacts",
|
||||||
|
filters={"parenttype": "CRM Deal", "parent": deal.name},
|
||||||
|
fields=["contact"],
|
||||||
|
)
|
||||||
|
|
||||||
return deal
|
return deal
|
||||||
|
|||||||
@ -21,7 +21,8 @@
|
|||||||
"column_break_bqvs",
|
"column_break_bqvs",
|
||||||
"contacts_tab",
|
"contacts_tab",
|
||||||
"email",
|
"email",
|
||||||
"mobile_no"
|
"mobile_no",
|
||||||
|
"contacts"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
@ -114,11 +115,17 @@
|
|||||||
"options": "Qualification\nDemo/Making\nProposal/Quotation\nNegotiation\nReady to Close\nWon\nLost",
|
"options": "Qualification\nDemo/Making\nProposal/Quotation\nNegotiation\nReady to Close\nWon\nLost",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"search_index": 1
|
"search_index": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "contacts",
|
||||||
|
"fieldtype": "Table",
|
||||||
|
"label": "Contacts",
|
||||||
|
"options": "CRM Contacts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-11-06 21:53:50.442404",
|
"modified": "2023-11-09 19:58:15.620483",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "FCRM",
|
"module": "FCRM",
|
||||||
"name": "CRM Deal",
|
"name": "CRM Deal",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user