Browse Source

[web_export_view]: fixes unandled case in if else construct

pull/2/head
unknown 11 years ago
parent
commit
3979ec99db
  1. 12
      web_export_view/static/js/web_advanced_export.js

12
web_export_view/static/js/web_advanced_export.js

@ -98,12 +98,16 @@ openerp.web_export_view = function(openerp) {
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");
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 { else {
text = _t("False");
text = cell.text || cell.textContent || cell.innerHTML || "";
} }
} }
else{ else{

Loading…
Cancel
Save