mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] Convert number string to number
This commit is contained in:
committed by
Pedro M. Baeza
parent
5327689b97
commit
ad89a6a3a5
@@ -72,10 +72,18 @@ 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 || "";
|
||||
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);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
$.blockUI();
|
||||
|
||||
Reference in New Issue
Block a user