Browse Source

Merge pull request #82 from bringsvor/integer_thousands_separator

Fix parsing of integers with separator
pull/113/head
Pedro M. Baeza 10 years ago
parent
commit
22ce0eeb4a
  1. 8
      web_export_view/static/src/js/web_export_view.js

8
web_export_view/static/src/js/web_export_view.js

@ -85,7 +85,13 @@ openerp.web_export_view = function (instance) {
}
}
else if (cell.classList.contains("oe_list_field_integer")) {
export_row.push(parseInt(text));
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 {
export_row.push(text.trim());

Loading…
Cancel
Save