diff --git a/crm/fcrm/doctype/crm_lead/crm_lead.py b/crm/fcrm/doctype/crm_lead/crm_lead.py index ccc0b607..44e549c5 100644 --- a/crm/fcrm/doctype/crm_lead/crm_lead.py +++ b/crm/fcrm/doctype/crm_lead/crm_lead.py @@ -249,6 +249,8 @@ def convert_to_deal(lead): lead = frappe.get_cached_doc("CRM Lead", lead) lead.status = "Qualified" lead.converted = 1 + if lead.sla: + lead.communication_status = 'Replied' contact = lead.create_contact(False) deal = lead.create_deal(contact) lead.save() diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue index ffe72664..66eeb654 100644 --- a/frontend/src/pages/Lead.vue +++ b/frontend/src/pages/Lead.vue @@ -376,7 +376,6 @@ function getParsedFields(sections) { } async function convertToDeal() { - updateField('communication_status', 'Replied') let deal = await call('crm.fcrm.doctype.crm_lead.crm_lead.convert_to_deal', { lead: lead.data.name, })