From 526c856f7ed8451f962cd0c0da38b866eeb7dc7f Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 10 Dec 2012 16:36:46 +0100 Subject: [PATCH] [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 --- addons/web/static/src/js/views.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index c0c6ae1f31d..eef9c5743f7 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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')