From 8d083f0d10ffc0f3f224512fc155b68cbca85451 Mon Sep 17 00:00:00 2001 From: bcornwellmott Date: Mon, 31 Oct 2016 06:54:01 -0700 Subject: [PATCH] [fix] Change communication to Linked Currently, the Request for Quotation emails are not linked to the RFQ document. This resolves that issue. https://discuss.erpnext.com/t/open-communications-for-rfq/17184 --- .../doctype/request_for_quotation/request_for_quotation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py index 78af1efc12..c3ed6323f8 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -131,7 +131,8 @@ class RequestforQuotation(BuyingController): def send_email(self, data, sender, subject, message, attachments): make(subject = subject, content=message,recipients=data.email_id, - sender=sender,attachments = attachments, send_email=True)["name"] + sender=sender,attachments = attachments, send_email=True, ++ doctype=self.doctype, name = self.name)["name"] frappe.msgprint(_("Email sent to supplier {0}").format(data.supplier))