mirror of https://github.com/OCA/web.git
[FIX] [web_export_view] Exporting records from a grouped view causes data rows have an empty cell at the beginning. (#807)
parent
3e30d1f16f
commit
6b9cb73cd4
|
@ -140,12 +140,14 @@ openerp.web_export_view = function (instance) {
|
|||
var export_row = [],
|
||||
record = new instance.web.list.Record(record).toForm();
|
||||
$.each(view.visible_columns, function() {
|
||||
export_row.push(
|
||||
this.type != 'integer' && this.type != 'float' ?
|
||||
jQuery('<div/>').html(this.format(
|
||||
record.data, {process_modifiers: false}
|
||||
)).text() : record.data[this.id].value
|
||||
);
|
||||
if(this.tag == 'field'){
|
||||
export_row.push(
|
||||
this.type != 'integer' && this.type != 'float' ?
|
||||
jQuery('<div/>').html(this.format(
|
||||
record.data, {process_modifiers: false}
|
||||
)).text() : record.data[this.id].value
|
||||
);
|
||||
};
|
||||
})
|
||||
export_rows.push(export_row);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue