minor fix in getting print format html
This commit is contained in:
parent
bc9123d16e
commit
bfd7bbc07d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue