[web_export_view]: fixes export boolean fields

This commit is contained in:
unknown
2014-04-09 11:17:00 +02:00
committed by Pedro M. Baeza
parent a0b70b7829
commit a77212bddf
2 changed files with 23 additions and 0 deletions

View File

@@ -75,6 +75,15 @@ openerp.web_export_view = function(instance, m) {
if (cell.classList.contains("oe_list_field_float")){
export_row.push(instance.web.parse_value(text, {'type': "float"}));
}
else if (cell.classList.contains("oe_list_field_boolean")){
var data_id = $( '<div>' + cell.innerHTML + '</div>');
if(data_id.find('input').get(0).checked){
export_row.push(_t("True"));
}
else {
export_row.push(_t("False"));
}
}
else if (cell.classList.contains("oe_list_field_integer")){
export_row.push(parseInt(text));
}