From 4ef10fd6c34f78b197be9ddf48317011793ca4d4 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 2 May 2019 23:08:38 +0530 Subject: [PATCH] fix: not able to make sales order from quotation --- erpnext/selling/doctype/quotation/quotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 3ba8adc3c8e..821a7d39ec8 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -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])