Added override for ERPNext updating a Lead's mobile_no field even if that phone number isn't defined as primary_mobile in the linked Contact
This commit is contained in:
@ -27,6 +27,14 @@ scheduler_events = {
|
||||
}
|
||||
}
|
||||
|
||||
# Document Events
|
||||
# Override Contact-> Validate to avoid setting non-mobile numbers as Lead mobile_no field
|
||||
doc_events = {
|
||||
"Contact": {
|
||||
"validate": ["rangeldigital.utilities.contact.contact_hooks.update_lead_phone_numbers"]
|
||||
}
|
||||
}
|
||||
|
||||
# Disable default send_email_to_leads_or_contacts
|
||||
after_install = "rangeldigital.utilities.install.after_install"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user