'Make communication entry'

def make_communication_entry(self):

    comm = frappe.get_doc({u'doctype': u'Communication', u'subject': self.subject, u'content': self.get_message(), u'sent_or_received': u'Sent', u'reference_doctype': self.reference_doctype, u'reference_name': self.reference_name})
    comm.insert(ignore_permissions=True)
