Skip to content

Commit 4ef10fd

Browse files
fix: not able to make sales order from quotation
1 parent ce51553 commit 4ef10fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/selling/doctype/quotation/quotation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ def _make_customer(source_name, ignore_permissions=False):
242242
frappe.throw(_("Please create Customer from Lead {0}").format(lead_name))
243243
else:
244244
return customer_name
245-
else:
246-
return frappe.get_doc("Customer",quotation[2])
245+
elif quotation and quotation[1]:
246+
return frappe.get_doc("Customer",quotation[1])

0 commit comments

Comments
 (0)