[fix] use print format file html if found
This commit is contained in:
parent
b14fc160fd
commit
70cb7e76de
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ def get_html(doc, name=None, print_format=None, meta=None,
|
|||
template = "standard"
|
||||
else:
|
||||
print_format = frappe.get_doc("Print Format", print_format)
|
||||
if print_format.custom_format:
|
||||
|
||||
if print_format.standard=="Yes" or print_format.custom_format:
|
||||
template = jenv.from_string(get_print_format(doc.doctype,
|
||||
print_format))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue