mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-19 11:27:55 +00:00
[fix] fixes birthday reminders #2021
This commit is contained in:
@@ -15,6 +15,10 @@ class Lead(SellingController):
|
||||
def get_feed(self):
|
||||
return '{0}: {1}'.format(_(self.status), self.lead_name)
|
||||
|
||||
def set_sender(self, sender):
|
||||
"""Will be called by **Communication** when a Lead is created from an incoming email."""
|
||||
self.email_id = sender
|
||||
|
||||
def onload(self):
|
||||
customer = frappe.db.get_value("Customer", {"lead_name": self.name})
|
||||
self.get("__onload").is_customer = customer
|
||||
|
||||
Reference in New Issue
Block a user