fixed empty email body

This commit is contained in:
Casey 2025-12-03 14:54:46 -06:00
parent fa9d64bb1a
commit 2473bdfe89
3 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ def send_estimate_email(estimate_name):
# email = "casey@shilohcode.com"
template_name = "Quote with Actions - SNW"
template = frappe.get_doc("Email Template", template_name)
message = frappe.render_template(template.response, {"doc": quotation})
message = frappe.render_template(template.response, {"name": quotation.name})
subject = frappe.render_template(template.subject, {"doc": quotation})
html = frappe.get_print("Quotation", quotation.name, print_format="Quotation - SNW - Standard", letterhead=True)
print("DEBUG: Generated HTML for PDF.")