feat: use modified by or owner to send notification from

This commit is contained in:
Shivam Mishra 2020-11-24 14:27:10 +05:30
parent 0866526d11
commit 200211e11e

View file

@ -181,6 +181,7 @@ def get_context(context):
'document_type': doc.doctype,
'document_name': doc.name,
'subject': subject,
'from_user': doc.modified_by or doc.owner,
'email_content': frappe.render_template(self.message, context),
'attached_file': attachments and json.dumps(attachments[0])
}