forked from Techsystech/web
[FIX] use odoo's parse_value
parent
082e00d396
commit
cfa62929b7
|
@ -221,14 +221,8 @@ openerp.web_widget_x2many_2d_matrix = function(instance)
|
||||||
// parse a value from user input
|
// parse a value from user input
|
||||||
parse_xy_value: function(val)
|
parse_xy_value: function(val)
|
||||||
{
|
{
|
||||||
if(this.is_numeric)
|
return instance.web.parse_value(
|
||||||
{
|
val, {'type': this.fields[this.field_value].type});
|
||||||
return parseFloat(val);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return val;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// format a value from the database for display
|
// format a value from the database for display
|
||||||
|
|
Loading…
Reference in New Issue