Browse Source

Get print format

version-14
Nabin Hait 9 years ago
parent
commit
2439506545
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      frappe/www/print.py

+ 5
- 5
frappe/www/print.py View File

@@ -96,11 +96,7 @@ def get_html(doc, name=None, print_format=None, meta=None,

# determine template
if print_format:
if print_format.standard=="Yes" or print_format.custom_format:
template = jenv.from_string(get_print_format(doc.doctype,
print_format))

elif print_format.format_data:
if print_format.format_data:
# set format data
format_data = json.loads(print_format.format_data)
for df in format_data:
@@ -112,6 +108,10 @@ def get_html(doc, name=None, print_format=None, meta=None,
doc.format_data_map = format_data_map

template = "standard"
elif print_format.standard=="Yes" or print_format.custom_format:
template = jenv.from_string(get_print_format(doc.doctype,
print_format))

else:
# fallback


Loading…
Cancel
Save