[FIX] use odoo's parse_value

pull/2756/head
Holger Brunn 2015-03-12 12:27:24 +01:00 committed by SodexisTeam
parent 5e269f1b53
commit c533e63e02
1 changed files with 2 additions and 8 deletions

View File

@ -221,14 +221,8 @@ openerp.web_widget_x2many_2d_matrix = function(instance)
// parse a value from user input
parse_xy_value: function(val)
{
if(this.is_numeric)
{
return parseFloat(val);
}
else
{
return val;
}
return instance.web.parse_value(
val, {'type': this.fields[this.field_value].type});
},
// format a value from the database for display