Browse Source

[11.0][FIX] web_export_view: Issue #1099

pull/1269/head
Alexandre Díaz 6 years ago
committed by ernesto
parent
commit
81832b05e5
  1. 9
      web_export_view/static/src/js/web_export_view.js

9
web_export_view/static/src/js/web_export_view.js

@ -49,15 +49,18 @@ odoo.define('web_export_view', function (require) {
var export_columns_keys = [];
var export_columns_names = [];
var column_index = 0;
var column_header_selector;
var column_header_selector = '';
var isGrouped = view.renderer.state.groupedBy.length > 0;
$.each(view.renderer.columns, function () {
if (this.tag == 'field' && (this.attrs.widget === undefined || this.attrs.widget != 'handle')) {
// non-fields like `_group` or buttons
export_columns_keys.push(column_index);
column_header_selector = '.o_list_view > thead > tr> th:not([class*="o_list_record_selector"]):eq('+column_index+')';
var css_selector_index = isGrouped
? column_index+1 : column_index;
column_header_selector = '.o_list_view > thead > tr> th:not([class*="o_list_record_selector"]):eq('+css_selector_index+')';
export_columns_names.push(view.$el.find(column_header_selector)[0].textContent);
}
column_index ++;
++column_index;
});
var export_rows = [];
$.blockUI();

Loading…
Cancel
Save