mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-19 19:37:56 +00:00
[email] changes in email_account api
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user