mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[Fix] Email addres unique key issue (#12450)
This commit is contained in:
committed by
Nabin Hait
parent
02302ff009
commit
3955fa5102
@@ -66,7 +66,7 @@ class Customer(TransactionBase):
|
|||||||
self.create_lead_address_contact()
|
self.create_lead_address_contact()
|
||||||
|
|
||||||
def create_primary_contact(self):
|
def create_primary_contact(self):
|
||||||
if not self.customer_primary_contact:
|
if not self.customer_primary_contact and not self.lead_name:
|
||||||
if self.mobile_no or self.email_id:
|
if self.mobile_no or self.email_id:
|
||||||
contact = make_contact(self)
|
contact = make_contact(self)
|
||||||
self.db_set('customer_primary_contact', contact.name)
|
self.db_set('customer_primary_contact', contact.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user