Skip to content

fix: prevent duplicate lead creation by mobile number#1836

Open
debgotwired wants to merge 1 commit intofrappe:developfrom
debgotwired:fix/lead-duplicate-mobile-validation
Open

fix: prevent duplicate lead creation by mobile number#1836
debgotwired wants to merge 1 commit intofrappe:developfrom
debgotwired:fix/lead-duplicate-mobile-validation

Conversation

@debgotwired
Copy link

Summary

  • prevent creating duplicate active leads with the same mobile number across formatting variants
  • keep self-updates allowed and ignore converted leads
  • add lead integration coverage for duplicate mobile validation

Testing

  • python3 -m py_compile crm/fcrm/doctype/crm_lead/crm_lead.py crm/fcrm/doctype/crm_lead/test_crm_lead.py
  • git diff --check
  • bench --site crmtest.local run-tests --module crm.fcrm.doctype.crm_lead.test_crm_lead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant