mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Handle the thousands separator, even multiple ones.
This commit is contained in:
committed by
Pedro M. Baeza
parent
85ef4695ce
commit
f06e69a1b3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user