summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
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/framework
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/framework')
-rw-r--r--addons/web/static/src/js/framework/view.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/framework/view.js b/addons/web/static/src/js/framework/view.js
index d803b7487df..e34a8f486ec 100644
--- a/addons/web/static/src/js/framework/view.js
+++ b/addons/web/static/src/js/framework/view.js
@@ -23,6 +23,8 @@ var View = Widget.extend({
// multi_record is used to distinguish views displaying a single record
// (e.g. FormView) from those that display several records (e.g. ListView)
multi_record: true,
+ // icon is the font-awesome icon to display in the view switcher
+ icon: 'fa-question',
init: function(parent, dataset, view_id, options) {
this._super(parent);
this.ViewManager = parent;