-
- Downloads
[IMP] web: Export grouped list view in xls file
PURPOSE ======= Add the support of grouped exports. Allow the user to export all records in one click from the listview, without having to go through the export modal, taking into account the domain, groupbys, and visible fields. SPECIFICATION ============= When exporting (whether it is from the modal or from the shortcut), any groupby(s) set on the listview should be taken into account (all unfolded) - UNLESS the export is import-compatible - each subgroup header has an indentation compared to its parent - the 'group headers' in the exported file should contain the same info (label, field aggregates) as it has in the listview. New secondary button on the tree view with label 'EXPORT' (to be confirmed...) - the export shortcut disregard the selected records, it exports all records according to the domain. - the button is visible even if there is no selected records. - essentially the export shortcut does the same thing as the following: - select all records - hit 'action' then 'export' - hit 'export' Define a boolean attribute on <tree> to specify whether or not the export shortcut should be displayed Task 2072910
Showing
- addons/web/controllers/main.py 200 additions, 52 deletionsaddons/web/controllers/main.py
- addons/web/static/src/js/views/list/list_controller.js 26 additions, 9 deletionsaddons/web/static/src/js/views/list/list_controller.js
- addons/web/static/src/js/views/list/list_view.js 1 addition, 0 deletionsaddons/web/static/src/js/views/list/list_view.js
- addons/web/static/src/js/widgets/data_export.js 34 additions, 22 deletionsaddons/web/static/src/js/widgets/data_export.js
- addons/web/static/src/xml/base.xml 3 additions, 0 deletionsaddons/web/static/src/xml/base.xml
- addons/web/static/tests/widgets/data_export_tests.js 114 additions, 2 deletionsaddons/web/static/tests/widgets/data_export_tests.js
- addons/web/tests/__init__.py 1 addition, 0 deletionsaddons/web/tests/__init__.py
- addons/web/tests/test_export.py 176 additions, 0 deletionsaddons/web/tests/test_export.py
- doc/reference/views.rst 1 addition, 1 deletiondoc/reference/views.rst
- odoo/addons/base/rng/tree_view.rng 1 addition, 0 deletionsodoo/addons/base/rng/tree_view.rng
Loading
Please register or sign in to comment