3
0
Fork 0

[FIX] reverting the revert..

7.0
Lorenzo Battistini 2013-08-05 16:49:22 +02:00
parent 134e5c6f88
commit baa52e50a7
1 changed files with 9 additions and 1 deletions

View File

@ -72,7 +72,15 @@ openerp.web_export_view = function(instance, m) {
$.each(export_columns_keys,function(){ $.each(export_columns_keys,function(){
cell = $row.find('td[data-field="'+this+'"]').get(0); cell = $row.find('td[data-field="'+this+'"]').get(0);
text = cell.text || cell.textContent || cell.innerHTML || ""; text = cell.text || cell.textContent || cell.innerHTML || "";
export_row.push(text.trim()); 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_rows.push(export_row); export_rows.push(export_row);
}; };