|
@ -140,12 +140,14 @@ openerp.web_export_view = function (instance) { |
|
|
var export_row = [], |
|
|
var export_row = [], |
|
|
record = new instance.web.list.Record(record).toForm(); |
|
|
record = new instance.web.list.Record(record).toForm(); |
|
|
$.each(view.visible_columns, function() { |
|
|
$.each(view.visible_columns, function() { |
|
|
|
|
|
if(this.tag == 'field'){ |
|
|
export_row.push( |
|
|
export_row.push( |
|
|
this.type != 'integer' && this.type != 'float' ? |
|
|
this.type != 'integer' && this.type != 'float' ? |
|
|
jQuery('<div/>').html(this.format( |
|
|
jQuery('<div/>').html(this.format( |
|
|
record.data, {process_modifiers: false} |
|
|
record.data, {process_modifiers: false} |
|
|
)).text() : record.data[this.id].value |
|
|
)).text() : record.data[this.id].value |
|
|
); |
|
|
); |
|
|
|
|
|
}; |
|
|
}) |
|
|
}) |
|
|
export_rows.push(export_row); |
|
|
export_rows.push(export_row); |
|
|
}); |
|
|
}); |
|
|