fix: Email Template None not found (#40167)

This commit is contained in:
rohitwaghchaure 2024-02-27 22:30:01 +05:30 committed by GitHub
parent dde4d9e53c
commit 043d9e3986
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,6 +266,10 @@ class RequestforQuotation(BuyingController):
"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)