[fix] fixes birthday reminders #2021

This commit is contained in:
Rushabh Mehta
2015-01-23 15:22:13 +05:30
parent 88a1515b46
commit 5bceebc6a1
14 changed files with 270 additions and 248 deletions

View File

@@ -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