Added handling of monetary fields

pull/59/head
Antonio Esposito 2016-07-04 14:56:13 +02:00 committed by Andrea
parent 4817dc24e8
commit 572f43ad32
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ class BveView(models.Model):
"size": field.size,
'state': "manual"
}
if vals['ttype'] == 'monetary':
vals.update({'ttype': 'float'})
if field.ttype == 'selection' and not field.selection:
model_obj = self.env[field.model_id.model]
selection = model_obj._columns[field.name].selection