[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:
parent
a03988e353
commit
526c856f7e
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue