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

@ -15,7 +15,7 @@ def add_lead_to_campaign(lead_name, campaign_name, start_date=None):
})
if existing:
frappe.throw("This Lead is already part of an Email Campaign with this name.")
frappe.throw("This Lead is already in this Email Campaign")
doc = frappe.new_doc("Email Campaign")
doc.update({