fix: Set communication sender while creating event (#9317)

This commit is contained in:
Suraj Shetty 2020-01-21 09:58:59 +05:30 committed by GitHub
parent 7683fa7e07
commit a916f17a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,8 @@ class Event(Document):
communication.subject = self.subject
communication.content = self.description if self.description else self.subject
communication.communication_date = self.starts_on
communication.sender = self.owner
communication.sender_full_name = frappe.utils.get_fullname(self.owner)
communication.reference_doctype = self.doctype
communication.reference_name = self.name
communication.communication_medium = communication_mapping.get(self.event_category) if self.event_category else ""