diff --git a/frappe/www/printview.py b/frappe/www/printview.py index 088c9dc403..bea1300764 100644 --- a/frappe/www/printview.py +++ b/frappe/www/printview.py @@ -251,7 +251,7 @@ def get_print_format(doctype, print_format): # server, find template module = print_format.module or frappe.db.get_value("DocType", doctype, "module") - path = os.path.join(get_module_path(module, "Print Format",print_format.name), + path = os.path.join(get_module_path(module, "Print Format", print_format.name), frappe.scrub(print_format.name) + ".html") if os.path.exists(path):