[FIX] ViewManagerAction's do_create_view() does not pipe _super's deferred.

bzr revid: fme@openerp.com-20130218114911-wpack9pfkr3pn0a2
This commit is contained in:
Fabien Meghazi 2013-02-18 12:49:11 +01:00
parent 6fe0dd8032
commit 98a9bb5376
1 changed files with 5 additions and 4 deletions

View File

@ -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;