3
0
Fork 0

Handle the thousands separator, even multiple ones.

9.0
Torvald B. Bringsvor 2015-03-26 12:20:04 +01:00
parent f0538f43d1
commit bbf49cd478
1 changed files with 6 additions and 1 deletions

View File

@ -85,7 +85,12 @@ openerp.web_export_view = function (instance) {
}
}
else if (cell.classList.contains("oe_list_field_integer")) {
tmp2 = text.replace(instance.web._t.database.parameters.thousands_sep, "");
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 {