[fix] use print format file html if found

This commit is contained in:
Anand Doshi 2015-08-27 15:51:53 +05:30
parent b14fc160fd
commit 70cb7e76de

View file

@ -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))