fix: check if df exists in get_formatted
This commit is contained in:
parent
9d3b993b71
commit
103fa1e31a
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,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