From bfd7bbc07d34155a1305a680dddcfe3460a29cc8 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 30 Jun 2014 17:17:22 +0530 Subject: [PATCH] minor fix in getting print format html --- frappe/core/doctype/print_format/print_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/print_format/print_format.py b/frappe/core/doctype/print_format/print_format.py index 351f5ad6e5..f1aedcf38b 100644 --- a/frappe/core/doctype/print_format/print_format.py +++ b/frappe/core/doctype/print_format/print_format.py @@ -94,7 +94,7 @@ def get_print_format_name(doctype, format_name): # server, find template path = os.path.join(get_doc_path(frappe.db.get_value("DocType", doctype, "module"), - "Print Format", format_name), format_name + ".html") + "Print Format", format_name), frappe.scrub(format_name) + ".html") if os.path.exists(path): with open(path, "r") as pffile: