fix: not able to make sales order from quotation

This commit is contained in:
Rohit Waghchaure
2019-05-02 23:08:38 +05:30
committed by Saurabh
parent 63c7fd90a5
commit f5297cf386

View File

@@ -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])