summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
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>