log body
This commit is contained in:
parent
2473bdfe89
commit
483942d2ca
@ -130,6 +130,8 @@ def send_estimate_email(estimate_name):
|
|||||||
template = frappe.get_doc("Email Template", template_name)
|
template = frappe.get_doc("Email Template", template_name)
|
||||||
message = frappe.render_template(template.response, {"name": quotation.name})
|
message = frappe.render_template(template.response, {"name": quotation.name})
|
||||||
subject = frappe.render_template(template.subject, {"doc": quotation})
|
subject = frappe.render_template(template.subject, {"doc": quotation})
|
||||||
|
print("DEBUG: Message: ", message)
|
||||||
|
print("DEBUG: Subject: ", subject)
|
||||||
html = frappe.get_print("Quotation", quotation.name, print_format="Quotation - SNW - Standard", letterhead=True)
|
html = frappe.get_print("Quotation", quotation.name, print_format="Quotation - SNW - Standard", letterhead=True)
|
||||||
print("DEBUG: Generated HTML for PDF.")
|
print("DEBUG: Generated HTML for PDF.")
|
||||||
pdf = get_pdf(html)
|
pdf = get_pdf(html)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user