fix(crm): fix lead while updating contact details

it use to throw error while updating contact details for lead "Next Contact Date cannot be in the past" is being solved
This commit is contained in:
Myuddin khatri 2020-05-07 15:11:39 +05:30
parent c759e17900
commit 2f81f754ac

View File

@ -19,6 +19,5 @@ def update_lead_phone_numbers(contact, method):
mobile_no = primary_mobile_nos[0]
lead = frappe.get_doc("Lead", contact_lead)
lead.phone = phone
lead.mobile_no = mobile_no
lead.save()
lead.db_set("phone", phone)
lead.db_set("mobile_no", mobile_no)