fix: lead reference changed to dynamic link #17987

This commit is contained in:
Govind S Menokee
2019-06-19 21:04:35 +05:30
committed by GitHub
parent 4de1083096
commit 839b653f6b

View File

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