mirror of https://github.com/OCA/web.git
Merge pull request #82 from bringsvor/integer_thousands_separator
Fix parsing of integers with separatorpull/113/head
commit
22ce0eeb4a
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue