Browse Source

Handle the thousands separator, even multiple ones.

pull/1269/head
Torvald B. Bringsvor 10 years ago
committed by ernesto
parent
commit
99cbc71af3
  1. 7
      web_export_view/static/src/js/web_export_view.js

7
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 {

Loading…
Cancel
Save