Merge pull request #18000 from govindsmenokee/patch-2
fix: lead reference changed to dynamic link #17987
This commit is contained in:
@@ -60,7 +60,7 @@ def place_order():
|
|||||||
quotation.flags.ignore_permissions = True
|
quotation.flags.ignore_permissions = True
|
||||||
quotation.submit()
|
quotation.submit()
|
||||||
|
|
||||||
if quotation.lead:
|
if quotation.quotation_to == 'Lead' and quotation.party_name:
|
||||||
# company used to create customer accounts
|
# company used to create customer accounts
|
||||||
frappe.defaults.set_user_default("company", quotation.company)
|
frappe.defaults.set_user_default("company", quotation.company)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user