fix: possible none value evaluation in get_formatted function
This commit is contained in:
parent
9d97097c12
commit
bcbcc87f4b
1 changed files with 2 additions and 1 deletions
|
|
@ -1109,7 +1109,8 @@ class BaseDocument:
|
|||
df = get_default_df(fieldname)
|
||||
|
||||
if (
|
||||
df.fieldtype == "Currency"
|
||||
df
|
||||
and df.fieldtype == "Currency"
|
||||
and not currency
|
||||
and (currency_field := df.get("options"))
|
||||
and (currency_value := self.get(currency_field))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue