[email] changes in email_account api

This commit is contained in:
Rushabh Mehta
2015-05-04 18:17:22 +05:30
parent e991c9e075
commit 82ee5fdba6
4 changed files with 28 additions and 30 deletions

View File

@@ -10,14 +10,12 @@ from frappe.model.document import Document
from frappe.utils import now
from frappe.utils.user import is_website_user
sender_field = "raised_by"
class Issue(Document):
def get_feed(self):
return "{0}: {1}".format(_(self.status), self.subject)
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)