Merge pull request #13203 from prssanna/custom-print-format-fix
fix: check if df exists in get_formatted
This commit is contained in:
commit
4b0e627c94
1 changed files with 1 additions and 1 deletions
|
|
@ -870,7 +870,7 @@ class BaseDocument(object):
|
|||
from frappe.model.meta import get_default_df
|
||||
df = get_default_df(fieldname)
|
||||
|
||||
if not currency:
|
||||
if not currency and df:
|
||||
currency = self.get(df.get("options"))
|
||||
if not frappe.db.exists('Currency', currency, cache=True):
|
||||
currency = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue