From 839b653f6b9273f9e0008ad75c4ae3bd7f0734d6 Mon Sep 17 00:00:00 2001 From: Govind S Menokee Date: Wed, 19 Jun 2019 21:04:35 +0530 Subject: [PATCH] fix: lead reference changed to dynamic link #17987 --- erpnext/shopping_cart/cart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/shopping_cart/cart.py b/erpnext/shopping_cart/cart.py index efc128aa0c5..32ea40bd9fb 100644 --- a/erpnext/shopping_cart/cart.py +++ b/erpnext/shopping_cart/cart.py @@ -60,7 +60,7 @@ def place_order(): quotation.flags.ignore_permissions = True quotation.submit() - if quotation.lead: + if quotation.quotation_to == 'Lead' and quotation.party_name: # company used to create customer accounts frappe.defaults.set_user_default("company", quotation.company)