Browse Source

fix: updating lead status while customer creation (#26606)

* fix:  updating lead status while customer creation

* fix: changes requested
develop
Anurag Mishra 3 years ago
committed by GitHub
parent
commit
94beda65ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      erpnext/selling/doctype/customer/customer.py

4
erpnext/selling/doctype/customer/customer.py

@ -157,9 +157,7 @@ class Customer(TransactionBase):
'''If Customer created from Lead, update lead status to "Converted"
update Customer link in Quotation, Opportunity'''
if self.lead_name:
lead = frappe.get_doc('Lead', self.lead_name)
lead.status = 'Converted'
lead.save()
frappe.db.set_value("Lead", self.lead_name, "status", "Converted")
def create_lead_address_contact(self):
if self.lead_name:

Loading…
Cancel
Save