[IMP] Support for @class in views definitions

bzr revid: fme@openerp.com-20120627151733-cgtfminjoqoxix11
This commit is contained in:
Fabien Meghazi
2012-06-27 17:17:33 +02:00
parent 4a0dd9d8c8
commit 5d343c4e5e
7 changed files with 7 additions and 0 deletions
+1
View File
@@ -53,6 +53,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
// TODO: move to load_view and document
var self = this;
this.fields_view = fields_view_get;
this.$element.addClass(this.fields_view.arch.attrs['class']);
this.mode = this.fields_view.arch.attrs.type || 'bar';
this.orientation = this.fields_view.arch.attrs.orientation == 'horizontal';