summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_manager.js
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/js/view_manager.js
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/js/view_manager.js')
-rw-r--r--addons/web/static/src/js/view_manager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_manager.js b/addons/web/static/src/js/view_manager.js
index 621fd663313..bf2e5beb185 100644
--- a/addons/web/static/src/js/view_manager.js
+++ b/addons/web/static/src/js/view_manager.js
@@ -62,6 +62,7 @@ var ViewManager = Widget.extend(ControlPanelMixin, {
button_label: View ? _.str.sprintf(_t('%(view_type)s view'), {'view_type': (view_label || view_type)}) : (void 'nope'),
multi_record: View ? View.prototype.multi_record : undefined,
accesskey: View ? View.prototype.accesskey : undefined,
+ icon: View ? View.prototype.icon : undefined,
};
self.view_order.push(view_descr);
self.views[view_type] = view_descr;