Merge pull request #37035 from trustedcomputer/fix-attach-print-pdf

This commit is contained in:
Hussain Nagaria 2026-02-18 20:28:26 +05:30 committed by GitHub
commit 8edecdaefc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.get("print_format_builder")
or print_format_doc.get("print_designer_print_format")
)
with print_language(lang or frappe.local.lang):