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)
|
||||
deal = deal.pop()
|
||||
|
||||
|
||||
deal["contacts"] = frappe.get_all(
|
||||
"CRM Contacts",
|
||||
filters={"parenttype": "CRM Deal", "parent": deal.name},
|
||||
fields=["contact"],
|
||||
)
|
||||
|
||||
return deal
|
||||
|
||||
@ -21,7 +21,8 @@
|
||||
"column_break_bqvs",
|
||||
"contacts_tab",
|
||||
"email",
|
||||
"mobile_no"
|
||||
"mobile_no",
|
||||
"contacts"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
@ -114,11 +115,17 @@
|
||||
"options": "Qualification\nDemo/Making\nProposal/Quotation\nNegotiation\nReady to Close\nWon\nLost",
|
||||
"reqd": 1,
|
||||
"search_index": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "contacts",
|
||||
"fieldtype": "Table",
|
||||
"label": "Contacts",
|
||||
"options": "CRM Contacts"
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-11-06 21:53:50.442404",
|
||||
"modified": "2023-11-09 19:58:15.620483",
|
||||
"modified_by": "Administrator",
|
||||
"module": "FCRM",
|
||||
"name": "CRM Deal",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user