[FIX] rollback ActionManager -> ViewManager conversions in dashboard, break client action handling
bzr revid: xmo@openerp.com-20110714102254-3q2204qf0s3140p6
This commit is contained in:
@@ -70,6 +70,7 @@ openerp.base.form.DashBoard = openerp.base.form.Widget.extend({
|
||||
// TODO: create a Dialog controller which optionally takes an action
|
||||
// Should set width & height automatically and take buttons & views callback
|
||||
var dialog_id = _.uniqueId('act_window_dialog');
|
||||
var action_manager = new openerp.base.ActionManager(this.session, dialog_id);
|
||||
var $dialog = $('<div id=' + dialog_id + '>').dialog({
|
||||
modal : true,
|
||||
title : 'Actions',
|
||||
@@ -85,7 +86,8 @@ openerp.base.form.DashBoard = openerp.base.form.Widget.extend({
|
||||
}
|
||||
}
|
||||
});
|
||||
new openerp.base.ViewManagerAction(this.session, dialog_id, action).start();
|
||||
action_manager.start();
|
||||
action_manager.do_action(action);
|
||||
// TODO: should bind ListView#select_record in order to catch record clicking
|
||||
},
|
||||
do_add_widget : function(action_manager) {
|
||||
@@ -223,8 +225,9 @@ openerp.base.form.DashBoard = openerp.base.form.Widget.extend({
|
||||
action_buttons : false,
|
||||
pager: false
|
||||
};
|
||||
new openerp.base.ViewManagerAction(this.session,
|
||||
this.view.element_id + '_action_' + action.id, action).start();
|
||||
new openerp.base.ActionManager(
|
||||
this.session, this.view.element_id + '_action_' + action.id)
|
||||
.do_action(action);
|
||||
},
|
||||
render: function() {
|
||||
// We should start with three columns available
|
||||
|
||||
Reference in New Issue
Block a user