Skip to content

Commit

Permalink
Merge pull request #73 from Alchez/fix-lead-autoset
Browse files Browse the repository at this point in the history
fix: don't autoset leads to Open
  • Loading branch information
vjFaLk authored Mar 22, 2023
2 parents eb7eec6 + cb02253 commit 68978cd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions erpnext/crm/doctype/lead/lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,3 @@ def get_lead_with_phone_number(number):
lead = leads[0].name if leads else None

return lead


def daily_open_lead():
leads = frappe.get_all("Lead", filters=[["contact_date", "Between", [nowdate(), nowdate()]]])
for lead in leads:
frappe.db.set_value("Lead", lead.name, "status", "Open")

0 comments on commit 68978cd

Please sign in to comment.