commit | f0385d0671f34b7240f2f587d427f5eeca73a73d | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Fri May 08 10:37:11 2020 +0530 |
committer | GitHub <noreply@github.com> | Fri May 08 10:37:11 2020 +0530 |
tree | c222581cf8f85d77c1d7b84670c2fd19b591b22b | |
parent | 67c33d1f8bc8889f05ae4d3c6f30b7aad660d454 [diff] | |
parent | fc0e45d79c2d07c2313264d019489fa901f6c6dc [diff] |
Merge pull request #21638 from MyuddinKhatri/lead-update-fix-v13 fix(crm): fix lead while updating contact details (develop)
diff --git a/erpnext/crm/utils.py b/erpnext/crm/utils.py index 38bf79e..95b19ec 100644 --- a/erpnext/crm/utils.py +++ b/erpnext/crm/utils.py
@@ -19,6 +19,5 @@ 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)