[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 Issue(Document):
def get_portal_page(self):
return "ticket"
def set_sender(self, sender):
"""Will be called by **Communication** when the Issue is created from an incoming email."""
self.raised_by = sender
def validate(self):
self.update_status()
self.set_lead_contact(self.raised_by)