fix: exclude print_format_builder print formats from weasyprint processing in email-attached PDFs

This commit is contained in:
trustedcomputer 2026-02-15 09:42:54 -08:00
parent 385be90daa
commit d97fdfe20a

View file

@ -138,7 +138,9 @@ def attach_print(
if print_format and print_format != "Standard":
print_format_doc = frappe.get_cached_doc("Print Format", print_format)
is_weasyprint_print_format = not (
print_format_doc.custom_format or print_format_doc.get("print_designer_print_format")
print_format_doc.custom_format
or print_format_doc.print_format_builder
or print_format_doc.get("print_designer_print_format")
)
with print_language(lang or frappe.local.lang):