Merge pull request #18000 from govindsmenokee/patch-2

fix: lead reference changed to dynamic link #17987
This commit is contained in:
Deepesh Garg
2019-07-12 14:41:00 +05:30
committed by GitHub

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)