def make_notification_log(self):
    alert_doc = frappe.get_doc(self.doctype_name, self.doc_name)
    users = []
    owner_email = frappe.get_value('User', alert_doc.owner, 'email')
    if owner_email:
        users.append(owner_email)
    modified_by_email = frappe.get_value('User', alert_doc.modified_by, 'email')
    if modified_by_email:
        users.append(modified_by_email)
    if (len(users) == 0):
        return
    notification_doc = {'type': 'Share', 'document_type': self.doctype_name, 'subject': self.subject, 'document_name': self.doc_name, 'from_user': frappe.session.user}
    enqueue_create_notification(users, notification_doc)
def make_notification_log(self):
    alert_doc = frappe.get_doc(self.doctype_name, self.doc_name)
    users = []
    owner_email = frappe.get_value('User', alert_doc.owner, 'email')
    if owner_email:
        users.append(owner_email)
    modified_by_email = frappe.get_value('User', alert_doc.modified_by, 'email')
    if modified_by_email:
        users.append(modified_by_email)
    if (len(users) == 0):
        return
    notification_doc = {'type': 'Share', 'document_type': self.doctype_name, 'subject': self.subject, 'document_name': self.doc_name, 'from_user': frappe.session.user}
    enqueue_create_notification(users, notification_doc)