From 687a80d74c47b4d63f25563680f456204ab357e4 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Tue, 27 Jan 2026 11:35:50 +0530 Subject: [PATCH 1/2] fix(RFQ): render email templates for preview and sending (cherry picked from commit 525b3960e15734e00147b2845b2a96479a849787) --- .../request_for_quotation.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 b2f8a1ed1e5..95727472112 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py @@ -304,12 +304,17 @@ class RequestforQuotation(BuyingController): else: sender = frappe.session.user not in STANDARD_USERS and frappe.session.user or None + rendered_message = frappe.render_template(self.message_for_supplier, doc_args) + subject_source = ( + self.subject + or frappe.get_value("Email Template", self.email_template, "subject") + or _("Request for Quotation") + ) + rendered_subject = frappe.render_template(subject_source, doc_args) if preview: return { - "message": self.message_for_supplier, - "subject": self.subject - or frappe.get_value("Email Template", self.email_template, "subject") - or _("Request for Quotation"), + "message": rendered_message, + "subject": rendered_subject, } attachments = [] @@ -333,10 +338,8 @@ class RequestforQuotation(BuyingController): self.send_email( data, sender, - self.subject - or frappe.get_value("Email Template", self.email_template, "subject") - or _("Request for Quotation"), - self.message_for_supplier, + rendered_subject, + rendered_message, attachments, ) From 4c4aa9bbdf81fe3b34bf733ba620cd3910d45bf6 Mon Sep 17 00:00:00 2001 From: AarDG10 Date: Tue, 27 Jan 2026 11:59:18 +0530 Subject: [PATCH 2/2] ci: minor text correction (cherry picked from commit 37cdae2f3428a2afaa9632491c23dd2b29035075) --- .github/ISSUE_TEMPLATE/bug_report.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 8b13b00c042..5db9c30135a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -60,7 +60,7 @@ body: description: Share exact version number of Frappe and ERPNext you are using. placeholder: | Frappe version - - ERPNext Verion - + ERPNext version - validations: required: true