diff --git a/erpnext/__init__.py b/erpnext/__init__.py index 542743dde20c..70ae35a5569b 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -4,7 +4,7 @@ import frappe from erpnext.hooks import regional_overrides -__version__ = '8.10.1' +__version__ = '8.10.2' def get_default_company(user=None): '''Get default company for user''' diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index d797632902d0..6c6eb3af7e0c 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -90,6 +90,9 @@ def create_lead_address_contact(self): lead = frappe.db.get_value("Lead", self.lead_name, ["lead_name", "email_id", "phone", "mobile_no", "gender", "salutation"], as_dict=True) + if not lead.lead_name: + frappe.throw(_("Please mention the Lead Name in Lead {0}").format(self.lead_name)) + lead.lead_name = lead.lead_name.split(" ") lead.first_name = lead.lead_name[0] lead.last_name = " ".join(lead.lead_name[1:])