Handle the thousands separator, even multiple ones.

pull/1269/head
Torvald B. Bringsvor 2015-03-26 12:20:04 +01:00 committed by ernesto
parent fed3e550fc
commit 99cbc71af3
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")) { 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)); export_row.push(parseInt(tmp2));
} }
else { else {