fix: not able to make sales order from quotation
This commit is contained in:
committed by
Saurabh
parent
63c7fd90a5
commit
f5297cf386
@@ -242,5 +242,5 @@ def _make_customer(source_name, ignore_permissions=False):
|
|||||||
frappe.throw(_("Please create Customer from Lead {0}").format(lead_name))
|
frappe.throw(_("Please create Customer from Lead {0}").format(lead_name))
|
||||||
else:
|
else:
|
||||||
return customer_name
|
return customer_name
|
||||||
else:
|
elif quotation and quotation[1]:
|
||||||
return frappe.get_doc("Customer",quotation[2])
|
return frappe.get_doc("Customer",quotation[1])
|
||||||
|
|||||||
Reference in New Issue
Block a user