mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
[fix] [minor] quotation to sales order, if not able to create customer, show message
This commit is contained in:
@@ -276,8 +276,9 @@ def _make_customer(source_name, ignore_permissions=False):
|
|||||||
customer.doc.name += "-" + lead_name
|
customer.doc.name += "-" + lead_name
|
||||||
customer.insert()
|
customer.insert()
|
||||||
return customer
|
return customer
|
||||||
elif webnotes.MandatoryError:
|
|
||||||
msgprint(_("You will need to make Customer from Lead") + (" - %s" % lead_name))
|
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
|
except webnotes.MandatoryError:
|
||||||
|
from webnotes.utils import get_url_to_form
|
||||||
|
webnotes.throw(_("Before proceeding, please create Customer from Lead") + \
|
||||||
|
(" - %s" % get_url_to_form("Lead", lead_name)))
|
||||||
|
|||||||
Reference in New Issue
Block a user