fix: Fix for customer lead merging in Quotation (#18294)
This commit is contained in:
parent
ed9ac14f70
commit
397013ec92
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user