From d6c137ba20ce7b53b25c8e51402a07a4a4fab5e1 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sun, 4 Feb 2024 13:35:24 +0530 Subject: [PATCH] fix: set lead in deal --- crm/fcrm/doctype/crm_lead/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.py b/crm/fcrm/doctype/crm_lead/crm_lead.py index e7149479..a041ebcb 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/doctype/crm_lead/crm_lead.py @@ -163,7 +163,6 @@ class CRMLead(Document): deal = frappe.new_doc("CRM Deal") lead_deal_map = { - "name": "lead", "lead_owner": "deal_owner", } @@ -188,6 +187,7 @@ class CRMLead(Document): deal.update( { + "lead": self.name, "contacts": [{"contact": contact}], } )