summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2015-07-02 13:30:46 +0200
committerYannick Tivisse <yti@odoo.com>2015-07-16 17:16:58 +0200
commit63567e2b5a82b02cf8acc6d0676d29602111a382 (patch)
tree5d589e774d8bec43b58fdfab584a7a9576f1baad /addons/web/static/src/xml
parent3943e8ab392b328956f41a31ccc34e5a50577d34 (diff)
[IMP] web : added shortcuts to jump between views
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index da933d2a716..cdf9712a06e 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -486,7 +486,18 @@
</div>
<t t-name="ViewManager.switch-buttons">
<t t-foreach="views" t-as="view">
- <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 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>
</t>
</t>