From 0dc0509be4ff540b0fab614d83c049885d337464 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 19 Jan 2024 17:15:26 +0530 Subject: [PATCH] fix: added lead name field in deal --- crm/fcrm/doctype/crm_deal/crm_deal.json | 8 +++++++- crm/fcrm/doctype/crm_lead/crm_lead.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 64595b8b..12115e15 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -17,6 +17,7 @@ "next_step", "deal_owner", "contacts_tab", + "lead_name", "email", "mobile_no", "phone", @@ -265,11 +266,16 @@ "fieldtype": "Table", "label": "Status Change Log", "options": "CRM Status Change Log" + }, + { + "fieldname": "lead_name", + "fieldtype": "Data", + "label": "Lead Name" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-13 11:50:37.361190", + "modified": "2024-01-19 17:13:41.931398", "modified_by": "Administrator", "module": "FCRM", "name": "CRM Deal", diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.py b/crm/fcrm/doctype/crm_lead/crm_lead.py index 51bd18eb..4a918a3c 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/doctype/crm_lead/crm_lead.py @@ -167,6 +167,7 @@ class CRMLead(Document): "organization": organization, "deal_owner": self.lead_owner, "source": self.source, + "lead_name": self.lead_name, "contacts": [{"contact": contact}], } )