var self = this;
this.view.execute_action(
- this.node.attrs, this.view.dataset, this.session.action_manager,
- this.view.datarecord.id, function () {
+ this.node.attrs, this.view.dataset, this.view.datarecord.id, function () {
self.view.reload();
});
}
return field.name === name;
});
if (!action) { return; }
- this.execute_action(
- action, this.dataset, this.session.action_manager, id, function () {
- $.when(callback.apply(this, arguments).then(function () {
- self.compute_aggregates();
- }));
+ this.execute_action(action, this.dataset, id, function () {
+ $.when(callback.apply(this, arguments).then(function () {
+ self.compute_aggregates();
+ }));
});
},
/**
if (!actions.length) { return; }
var action = actions[0][2];
action.flags.new_window = true;
- self.session.action_manager.do_action(action);
+ self.do_action(action);
});
},
* @param {String} [action_data.type='workflow'] the action type, if present, one of ``'object'``, ``'action'`` or ``'workflow'``
* @param {Object} [action_data.context=null] additional action context, to add to the current context
* @param {openerp.base.DataSet} dataset a dataset object used to communicate with the server
- * @param {openerp.base.ActionManager} action_manager object able to actually execute the action, if any is fetched
* @param {Object} [record_id] the identifier of the object on which the action is to be applied
* @param {Function} on_closed callback to execute when dialog is closed or when the action does not generate any result (no new action)
*/
- execute_action: function (action_data, dataset, action_manager, record_id, on_closed) {
+ execute_action: function (action_data, dataset, record_id, on_closed) {
var self = this;
var handler = function (r) {
var action = r.result;
type: 'object',
name: 'action_launch'
}, self.dataset,
- self.session.action_manager,
$(this).data('id'), function () {
// after action popup closed, refresh configuration
// thingie
}
views.push(view);
});
- this.session.action_manager.do_action({
+ this.do_action({
"res_model" : this.dataset.model,
"domain" : this.dataset.domain,
"views" : views,