summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-08-06 10:23:01 +0200
committerAaron Bohy <aab@odoo.com>2015-08-07 14:05:07 +0200
commit10f2df8e59b595a14f9e8979e384577baee746e7 (patch)
tree1405078ab116f35d5b023026fcb9ef5280f7b03e /addons/web/static/src/xml/base.xml
parentb1f28100f9c7fb28102ff6e8c21e14c25e810739 (diff)
[REF] web(_*): views: view_switcher icon
Add a key icon in the view's prototype corresponding to the font-awesome icon to display in the view switcher.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 3ba802f6ad3..aba01929158 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -171,7 +171,9 @@
</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-att-accesskey="view.accesskey"/>
+ <button type="button" t-att-accesskey="view.accesskey"
+ t-attf-class="btn btn-default fa #{view.icon} oe-cp-switch-#{view.type}"
+ t-att-data-view-type="view.type" t-att-title="view.label"/>
</t>
</t>