mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Migrate web_export_view to v 8.0
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//#############################################################################
|
||||
|
||||
openerp.web_export_view = function (instance) {
|
||||
|
||||
debugger;
|
||||
@@ -94,21 +93,20 @@ openerp.web_export_view = function (instance) {
|
||||
});
|
||||
export_rows.push(export_row);
|
||||
}
|
||||
;
|
||||
}
|
||||
});
|
||||
$.blockUI();
|
||||
debugger;
|
||||
view.session.get_file({
|
||||
url: '/web/export/xls_view',
|
||||
data: {data: JSON.stringify({
|
||||
model: view.model,
|
||||
headers: export_columns_names,
|
||||
rows: export_rows,
|
||||
rows: export_rows
|
||||
})},
|
||||
complete: $.unblockUI
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- vim:fdl=1:
|
||||
-->
|
||||
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="AddExportViewMain">
|
||||
<div class="oe_form_dropdown_section">
|
||||
Reference in New Issue
Block a user