commit | 043d9e39860138ba66ea5ea85978b114a9a6664a | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Tue Feb 27 22:30:01 2024 +0530 |
committer | GitHub <noreply@github.com> | Tue Feb 27 22:30:01 2024 +0530 |
tree | 44096985e0db682b644ffe2c6edda14a2d9f611c | |
parent | dde4d9e53c8c98537cd950d87383dd06184ffb9f [diff] |
fix: Email Template None not found (#40167)
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 1a9dbab..f261773 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.py
@@ -266,6 +266,10 @@ "user_fullname": full_name, } ) + + if not self.email_template: + return + email_template = frappe.get_doc("Email Template", self.email_template) message = frappe.render_template(email_template.response_, doc_args) subject = frappe.render_template(email_template.subject, doc_args)