From 20a66c401405cc2910d92f3e0a90d21d824c8ef4 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Mon, 27 Jun 2016 11:39:09 +0200 Subject: [PATCH] [fix] make JS query work for both community and enterprise edition --- web_export_view/static/src/js/web_export_view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web_export_view/static/src/js/web_export_view.js b/web_export_view/static/src/js/web_export_view.js index eb8b99f7..ae8c800b 100644 --- a/web_export_view/static/src/js/web_export_view.js +++ b/web_export_view/static/src/js/web_export_view.js @@ -62,12 +62,14 @@ Sidebar.include({ export_columns_names.push(this.string); } }); - var rows = view.$el.find('.o_list_view > tbody > tr[data-id]'); + var rows = view.$el.find('tbody tr[data-id]'); var export_rows = []; $.each(rows, function () { var $row = $(this); var export_row = []; - var checked = $row.find('.o_list_record_selector input[type=checkbox]').is(':checked'); + var row_selector = '.o_list_record_selector input[type=checkbox],\ + .oe_list_record_selector input[type=checkbox]'; + var checked = $row.find(row_selector).is(':checked'); if (children && checked === true) { $.each(export_columns_keys, function () { var cell = $row.find('td[data-field="' + this + '"]').get(0);