From bbf49cd478cd629611c1e39f5029c291689b744c Mon Sep 17 00:00:00 2001 From: "Torvald B. Bringsvor" Date: Thu, 26 Mar 2015 12:20:04 +0100 Subject: [PATCH] Handle the thousands separator, even multiple ones. --- web_export_view/static/src/js/web_export_view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web_export_view/static/src/js/web_export_view.js b/web_export_view/static/src/js/web_export_view.js index e5fe0123..00cb047e 100644 --- a/web_export_view/static/src/js/web_export_view.js +++ b/web_export_view/static/src/js/web_export_view.js @@ -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 {