mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge branch 'develop' into test-asset-lcv
This commit is contained in:
@@ -157,9 +157,7 @@ class Customer(TransactionBase):
|
|||||||
'''If Customer created from Lead, update lead status to "Converted"
|
'''If Customer created from Lead, update lead status to "Converted"
|
||||||
update Customer link in Quotation, Opportunity'''
|
update Customer link in Quotation, Opportunity'''
|
||||||
if self.lead_name:
|
if self.lead_name:
|
||||||
lead = frappe.get_doc('Lead', self.lead_name)
|
frappe.db.set_value("Lead", self.lead_name, "status", "Converted")
|
||||||
lead.status = 'Converted'
|
|
||||||
lead.save()
|
|
||||||
|
|
||||||
def create_lead_address_contact(self):
|
def create_lead_address_contact(self):
|
||||||
if self.lead_name:
|
if self.lead_name:
|
||||||
|
|||||||
Reference in New Issue
Block a user