From 572f43ad3289a2d6c96586e463208b82c7ea2d9f Mon Sep 17 00:00:00 2001 From: Antonio Esposito Date: Mon, 4 Jul 2016 14:56:13 +0200 Subject: [PATCH] Added handling of monetary fields --- bi_view_editor/models/bve_view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bi_view_editor/models/bve_view.py b/bi_view_editor/models/bve_view.py index 30fd5a48..e70f9fa1 100644 --- a/bi_view_editor/models/bve_view.py +++ b/bi_view_editor/models/bve_view.py @@ -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