diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-03-30 20:44:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-30 20:44:04 +0200 |
| commit | e3ae7c6492bbd580e51f0674a79d56df29a6aff5 (patch) | |
| tree | 5044b2fba4cfa4c543984ddbae08b46b09759063 /addons/web/static/src/xml/base.xml | |
| parent | b53cf339e4e3728672ad2a8d505878274f4294c4 (diff) | |
| parent | 7c740639fd78b6b59509e07ef2478913a183c9c1 (diff) | |
[MERGE] web,*: selection in list views
*account
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
closes odoo/odoo#48305
Related: odoo/enterprise#9537
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 54ee1d035da..2b0ff6f31dd 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -859,9 +859,22 @@ </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> + <t t-if="changes.isDomainSelected">This update will only consider the records of the current page.<br/><br/></t> <t t-if="changes.nbRecords != changes.nbValidRecords"> Among the <t t-raw="changes.nbRecords"/> selected records, <t t-raw="changes.nbValidRecords"/> are valid for this update.<br/> |
