[FIX] Parsing of float values

This commit is contained in:
Lorenzo Battistini
2013-08-05 16:50:12 +02:00

View File

@@ -73,7 +73,7 @@ openerp.web_export_view = function(instance, m) {
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));
export_row.push(instance.web.parse_value(text, {'type': "float"}));
}
else if (cell.classList.contains("oe_list_field_integer")){
export_row.push(parseInt(text));