Information about bug
Leave Approval Staus mail is being sent as an empty message via e-mail when the template is using HTML.
I believe this has to do with the following line
|
message = frappe.render_template(email_template.response, args) |
The Email Template code has been refactored to user response_ as a property so that HTML templates or plaintext can be utilized. Relevant code is here
I think this should be changed to
message = email_template.get_formatted_response(args)
or
message = frappe.render_template(email_template.response_, args)
Module
HR
Version
Frappe Version - 15.9.0
ERPNext Version - 15.10.1
HRMS Version - 15.9.0
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct
Information about bug
Leave Approval Staus mail is being sent as an empty message via e-mail when the template is using HTML.
I believe this has to do with the following line
hrms/hrms/hr/doctype/leave_application/leave_application.py
Line 591 in 1ac2f52
The
Email Templatecode has been refactored to userresponse_as a property so that HTML templates or plaintext can be utilized. Relevant code is hereI think this should be changed to
or
Module
HR
Version
Frappe Version - 15.9.0
ERPNext Version - 15.10.1
HRMS Version - 15.9.0
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct