From 70cb7e76de9dadee800e4c4bbc4bd6bcbde296b2 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 27 Aug 2015 15:51:53 +0530 Subject: [PATCH] [fix] use print format file html if found --- frappe/templates/pages/print.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/templates/pages/print.py b/frappe/templates/pages/print.py index 6768e724e2..46384d3496 100644 --- a/frappe/templates/pages/print.py +++ b/frappe/templates/pages/print.py @@ -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))