bzr revid: vme@tinyerp.com-20121101070418-guunfniuhvgy8ot9
This commit is contained in:
Vidhin Mehta (OpenERP) 2012-11-01 12:34:18 +05:30
parent 8152ff9609
commit a5aa575356
1 changed files with 11 additions and 1 deletions

View File

@ -70,7 +70,17 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
this.main_view_id = this.parent.fields_view.view_id;
this.action_manager = new instance.web.ActionManager(this);
this.action_manager.appendTo(this.view_edit_dialog.$el);
this.action_manager.do_action(action);
$.when(this.action_manager.do_action(action)).then(function() {
var viewmanager = self.action_manager.inner_widget;
var controller = viewmanager.views[viewmanager.active_view].controller;
controller.on('view_loaded', self, function(){
$(controller.groups).bind({
'selected': function(e, ids, records) {
self.main_view_id = ids[0];
}
});
});
});
},
on_create_view: function() {
var self = this;