[FIX] problem in View class, the is_action_enabled() method assumed the existence of the fields_view attribute despite the fact that class never setted that attribute

bzr revid: nicolas.vanhoren@openerp.com-20121210153646-ulbsja1mt9re25wz
This commit is contained in:
niv-openerp 2012-12-10 16:36:46 +01:00
parent a03988e353
commit 526c856f7e
1 changed files with 1 additions and 0 deletions

View File

@ -1206,6 +1206,7 @@ instance.web.View = instance.web.Widget.extend({
});
}
return view_loaded.then(function(r) {
self.fields_view = r;
self.trigger('view_loaded', r);
// add css classes that reflect the (absence of) access rights
self.$el.addClass('oe_view')