fix: exclude print_format_builder print formats from weasyprint processing in email-attached PDFs
This commit is contained in:
parent
385be90daa
commit
d97fdfe20a
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue