Merge pull request #37035 from trustedcomputer/fix-attach-print-pdf
This commit is contained in:
commit
8edecdaefc
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.get("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