Merge pull request #17469 from rohitwaghchaure/fixed_sales_order_issue_from_quotation

fix: not able to make sales order from quotation
This commit is contained in:
Nabin Hait
2019-05-03 09:19:27 +05:30
committed by GitHub

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))
else:
return customer_name
else:
return frappe.get_doc("Customer",quotation[2])
elif quotation and quotation[1]:
return frappe.get_doc("Customer",quotation[1])