fix: update lead if contact details are changed

This commit is contained in:
Rohan Bansal
2020-04-28 16:08:52 +05:30
parent 3b8ad79445
commit 7c67c38bc5
2 changed files with 26 additions and 1 deletions

View File

@@ -256,7 +256,8 @@ doc_events = {
},
"Contact": {
"on_trash": "erpnext.support.doctype.issue.issue.update_issue",
"after_insert": "erpnext.communication.doctype.call_log.call_log.set_caller_information"
"after_insert": "erpnext.communication.doctype.call_log.call_log.set_caller_information",
"validate": "erpnext.crm.utils.update_lead_phone_numbers"
},
"Lead": {
"after_insert": "erpnext.communication.doctype.call_log.call_log.set_caller_information"