mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] use odoo's parse_value
This commit is contained in:
committed by
Simone Orsi
parent
d545ae5412
commit
8acfc51d7f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user