[name], {context: this._model.context()})
.then(callback);
},
- exec_workflow: function (id, signal, callback) {
+ exec_workflow: function (id, signal) {
return this._model.exec_workflow(id, signal)
- .pipe(function (result) { return { result: result }; })
- .then(callback);
+ .pipe(function (result) { return { result: result }; });
},
get_context: function(request_context) {
return this._model.context(request_context);
} else if (action_data.type=="action") {
return this.rpc('/web/action/load', { action_id: action_data.name, context: context, do_not_eval: true}, handler);
} else {
- return dataset.exec_workflow(record_id, action_data.name, handler);
+ return dataset.exec_workflow(record_id, action_data.name).then(handler(r));
}
},
/**