[FIX] reverting change as it doesn't handle decimal separators != '.'

This commit is contained in:
Lorenzo Battistini
2013-08-05 16:24:40 +02:00
parent 5f99105655
commit 134e5c6f88

View File

@@ -72,15 +72,7 @@ openerp.web_export_view = function(instance, m) {
$.each(export_columns_keys,function(){
cell = $row.find('td[data-field="'+this+'"]').get(0);
text = cell.text || cell.textContent || cell.innerHTML || "";
if (cell.classList.contains("oe_list_field_float")){
export_row.push(parseFloat(text));
}
else if (cell.classList.contains("oe_list_field_integer")){
export_row.push(parseInt(text));
}
else{
export_row.push(text.trim());
}
export_row.push(text.trim());
});
export_rows.push(export_row);
};