Browse Source

[FIX] use odoo's parse_value

pull/871/head
Holger Brunn 10 years ago
committed by Simone Orsi
parent
commit
8acfc51d7f
  1. 10
      web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js

10
web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js

@ -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

Loading…
Cancel
Save