|
@ -92,20 +92,24 @@ openerp.web_export_view = function(openerp) { |
|
|
$.each(rows,function(){ |
|
|
$.each(rows,function(){ |
|
|
$row = $(this); |
|
|
$row = $(this); |
|
|
// find only rows with data
|
|
|
// find only rows with data
|
|
|
if($row.attr('data-id')){ |
|
|
|
|
|
export_row = []; |
|
|
|
|
|
|
|
|
if($row.attr('data-id')){ |
|
|
|
|
|
export_row = []; |
|
|
$.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); |
|
|
var data_id = $( '<div>' + cell.innerHTML + '</div>'); |
|
|
var data_id = $( '<div>' + cell.innerHTML + '</div>'); |
|
|
if(data_id.find('input').get(0) != undefined) { |
|
|
if(data_id.find('input').get(0) != undefined) { |
|
|
if(data_id.find('input').get(0).type == 'checkbox' && |
|
|
|
|
|
data_id.find('input').get(0).checked){ |
|
|
|
|
|
text = _t("True"); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
text = _t("False"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(data_id.find('input').get(0).type == 'checkbox'){ |
|
|
|
|
|
if(data_id.find('input').get(0).checked){ |
|
|
|
|
|
text = _t("True"); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
text = _t("False"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
text = cell.text || cell.textContent || cell.innerHTML || ""; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
text = cell.text || cell.textContent || cell.innerHTML || ""; |
|
|
text = cell.text || cell.textContent || cell.innerHTML || ""; |
|
|
} |
|
|
} |
|
|