From 98a9bb5376f8ddf995083cb64266cde7d6cd3ebc Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 18 Feb 2013 12:49:11 +0100 Subject: [PATCH] [FIX] ViewManagerAction's do_create_view() does not pipe _super's deferred. bzr revid: fme@openerp.com-20130218114911-wpack9pfkr3pn0a2 --- addons/web/static/src/js/views.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 2cbd966b6bb..47986f1da47 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -996,10 +996,11 @@ instance.web.ViewManagerAction = instance.web.ViewManager.extend({ }); }, do_create_view: function(view_type) { - var r = this._super.apply(this, arguments); - var view = this.views[view_type].controller; - view.set({ 'title': this.action.name }); - return r; + var self = this; + return this._super.apply(this, arguments).then(function() { + var view = self.views[view_type].controller; + view.set({ 'title': self.action.name }); + }); }, get_action_manager: function() { var cur = this;