fix: Fix for customer lead merging in Quotation (#18294)

This commit is contained in:
Deepesh Garg 2019-07-12 14:51:01 +05:30 committed by Nabin Hait
parent ed9ac14f70
commit 397013ec92

View File

@ -61,7 +61,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)