diff --git a/frappe/__init__.py b/frappe/__init__.py index 7186716178..eacda12be8 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json from .exceptions import * from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template -__version__ = '8.5.4' +__version__ = '8.5.5' __title__ = "Frappe Framework" local = Local() diff --git a/frappe/public/js/frappe/form/formatters.js b/frappe/public/js/frappe/form/formatters.js index 6a9e0cc009..79c6a36295 100644 --- a/frappe/public/js/frappe/form/formatters.js +++ b/frappe/public/js/frappe/form/formatters.js @@ -66,7 +66,7 @@ frappe.form.formatters = { } value = (value==null || value==="") ? "" : format_currency(value, currency, precision); - if (options.for_print) { + if (options && options.for_print) { return value; } else { return frappe.form.formatters._right(value, options);