From 917d49aef844d83a7b201043aa1597078fe3021d Mon Sep 17 00:00:00 2001 From: "Torvald B. Bringsvor" Date: Sat, 7 Feb 2015 13:56:50 +0100 Subject: [PATCH] Small fix to allow integers to be parsed correctly when a locate with a thousand separator is used. --- web_export_view/static/src/js/web_export_view.js | 3 ++- 1 file changed, 2 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 df4419de..e5fe0123 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,8 @@ openerp.web_export_view = function (instance) { } } else if (cell.classList.contains("oe_list_field_integer")) { - export_row.push(parseInt(text)); + tmp2 = text.replace(instance.web._t.database.parameters.thousands_sep, ""); + export_row.push(parseInt(tmp2)); } else { export_row.push(text.trim());