diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-07-23 09:11:27 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-07-23 09:25:18 +0200 |
| commit | a500f3b01b6399d21baf0e69372736b26f0b35f0 (patch) | |
| tree | cc2e8a9bb3a0fde2f644da6c24a41de2ffc41eb3 /addons/web/static/src/xml/base.xml | |
| parent | d5a8ad53e6b3eb22869a563a3a9e2bf3b6ecf190 (diff) | |
[IMP] web(_kanban): accesskeys for switch buttons
More elegant solution to add accesskeys on switch buttons for list, kanban and
form views.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index cdf9712a06e..7cc668838e7 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -486,18 +486,7 @@ </div> <t t-name="ViewManager.switch-buttons"> <t t-foreach="views" t-as="view"> - <t t-if="view.type === 'kanban'"> - <button type="button" t-attf-class="btn btn-default fa oe-cp-switch-kanban" t-att-data-view-type="view.type" accesskey="K" t-att-title="view.label"/> - </t> - <t t-if="view.type === 'form'"> - <button type="button" t-attf-class="btn btn-default fa oe-cp-switch-form" t-att-data-view-type="view.type" accesskey="F" t-att-title="view.label"/> - </t> - <t t-if="view.type === 'list'"> - <button type="button" t-attf-class="btn btn-default fa oe-cp-switch-list" t-att-data-view-type="view.type" accesskey="L" t-att-title="view.label"/> - </t> - <t t-if="view.type !== 'kanban' and view.type !== 'form' and view.type !== 'list'"> - <button type="button" t-attf-class="btn btn-default fa oe-cp-switch-#{view.type}" t-att-data-view-type="view.type" t-att-title="view.label"/> - </t> + <button type="button" t-attf-class="btn btn-default fa oe-cp-switch-#{view.type}" t-att-data-view-type="view.type" t-att-title="view.label" t-att-accesskey="view.accesskey"/> </t> </t> |
