Added handling of monetary fields
parent
4817dc24e8
commit
572f43ad32
|
@ -187,6 +187,8 @@ class BveView(models.Model):
|
||||||
"size": field.size,
|
"size": field.size,
|
||||||
'state': "manual"
|
'state': "manual"
|
||||||
}
|
}
|
||||||
|
if vals['ttype'] == 'monetary':
|
||||||
|
vals.update({'ttype': 'float'})
|
||||||
if field.ttype == 'selection' and not field.selection:
|
if field.ttype == 'selection' and not field.selection:
|
||||||
model_obj = self.env[field.model_id.model]
|
model_obj = self.env[field.model_id.model]
|
||||||
selection = model_obj._columns[field.name].selection
|
selection = model_obj._columns[field.name].selection
|
||||||
|
|
Loading…
Reference in New Issue