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:
Jeremy Rangel
2025-06-05 00:31:55 -07:00
parent 70cf4b1a6e
commit ca3ab820b5
7 changed files with 36 additions and 27 deletions

View File

@ -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"