summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-03-27 10:25:00 +0000
committerAaron Bohy <aab@odoo.com>2020-03-30 09:55:08 +0000
commit7af5fb31ec7a3ef4bfce1756aa01824cba30e592 (patch)
tree4aa270929c2b7bd48d7cd11865cfaadb18af1958 /addons/web/static/src/xml/base.xml
parent9be9a75e67ac0727e2d5a0f7584f350f4ee638fb (diff)
[IMP] web: selection in list views
This commit allows the user to apply actions to all records matching the current domain in list views. It also ensures that the user is aware of the set of records actually selected. The number of selected records is now displayed in the control panel, and the user can, with an additional click, select all records matching the current domain instead of the ones of the current page. Task 2185145
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 54ee1d035da..ee72f282337 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -859,6 +859,18 @@
</div>
</t>
+<t t-name="ListView.selection">
+ <div class="o_list_selection_box">
+ <t t-if="isDomainSelected">All <t t-esc="nbTotal"/> selected</t>
+ <t t-else="">
+ <t t-esc="nbSelected"/> selected
+ <a t-if="isPageSelected and nbTotal > nbSelected" href="#" class="o_list_select_domain">
+ <i class="fa fa-arrow-right"/> Select all <t t-esc="nbTotal"/>
+ </a>
+ </t>
+ </div>
+</t>
+
<t t-name="ListView.confirmModal">
<main role="alert">
<p>