Browse Source

Handle the thousands separator, even multiple ones.

pull/82/head
Torvald B. Bringsvor 10 years ago
parent
commit
bbf49cd478
  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