From 406bf1d9620f8d4c5a3bac1653aed9dafa5b5c33 Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Fri, 1 Dec 2017 12:06:38 +0530 Subject: [PATCH] reference doctype and name in the email queue while sending email from the auto email report (#4557) --- frappe/email/doctype/auto_email_report/auto_email_report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/email/doctype/auto_email_report/auto_email_report.py b/frappe/email/doctype/auto_email_report/auto_email_report.py index 8f468f3de5..01b8566982 100644 --- a/frappe/email/doctype/auto_email_report/auto_email_report.py +++ b/frappe/email/doctype/auto_email_report/auto_email_report.py @@ -139,7 +139,9 @@ class AutoEmailReport(Document): recipients = self.email_to.split(), subject = self.name, message = message, - attachments = attachments + attachments = attachments, + reference_doctype = self.doctype, + reference_name = self.name ) @frappe.whitelist()