diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.json b/crm/fcrm/doctype/crm_deal/crm_deal.json index 25f521cb..73ac91be 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.json +++ b/crm/fcrm/doctype/crm_deal/crm_deal.json @@ -26,6 +26,7 @@ "section_break_eepu", "lead", "column_break_bqvs", + "source", "sla_tab", "sla", "sla_creation", @@ -216,11 +217,17 @@ "fieldtype": "Data", "label": "Territory", "read_only": 1 + }, + { + "fieldname": "source", + "fieldtype": "Link", + "label": "Source", + "options": "CRM Lead Source" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2024-01-04 18:58:55.295874", + "modified": "2024-01-04 20:02:23.823826", "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 d21fdaa6..d9cd0174 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/doctype/crm_lead/crm_lead.py @@ -143,6 +143,7 @@ class CRMLead(Document): "lead": self.name, "organization": self.organization, "deal_owner": self.lead_owner, + "source": self.source, "contacts": [{"contact": contact}], } )