Merge pull request #82 from bringsvor/integer_thousands_separator

Fix parsing of integers with separator
pull/113/head
Pedro M. Baeza 2015-03-26 17:44:09 +01:00
commit 22ce0eeb4a
1 changed files with 7 additions and 1 deletions

View File

@ -85,7 +85,13 @@ openerp.web_export_view = function (instance) {
}
}
else if (cell.classList.contains("oe_list_field_integer")) {
export_row.push(parseInt(text));
var tmp2 = text;
do {
tmp = tmp2;
tmp2 = tmp.replace(instance.web._t.database.parameters.thousands_sep, "");
} while (tmp !== tmp2);
export_row.push(parseInt(tmp2));
}
else {
export_row.push(text.trim());