Set Decimal to 0.0 if cast of decimal field fails
This commit is contained in:
parent
daed8b301a
commit
978586f60b
|
@ -187,7 +187,7 @@ class BaseExternalMapping(ModelSQL, ModelView):
|
|||
try:
|
||||
result = Decimal(result)
|
||||
except:
|
||||
result = None
|
||||
result = Decimal('0.0')
|
||||
elif mapping_line.external_type == 'bool':
|
||||
if result:
|
||||
result = True
|
||||
|
|
Loading…
Reference in New Issue