[minor] clean up message if no Customer from Quotation > Sales Order, fixes #3854

This commit is contained in:
Rushabh Mehta 2016-01-25 13:08:21 +05:30
parent 47c2aa179b
commit e1a1c8ac31

View File

@ -155,6 +155,7 @@ def _make_customer(source_name, ignore_permissions=False):
else:
raise
except frappe.MandatoryError:
frappe.local.message_log = []
frappe.throw(_("Please create Customer from Lead {0}").format(lead_name))
else:
return customer_name