diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-09-30 16:49:16 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-09-30 16:49:16 +0200 |
| commit | b634ca91a0c9cd08f35175511912f6d72b52804e (patch) | |
| tree | 4d85bc00fff768563716e6110e299bad0d2cf28a /addons/web/static/src/js/data.js | |
| parent | 7b36898705b34262f43049a61675e385c6f3070a (diff) | |
| parent | c768a2f226f95a73507a92430ed970b1b2126604 (diff) | |
[MERGE] callback2deferred dataset.exec_workflow
bzr revid: al@openerp.com-20120930144916-aco0b10x4ykdddg6
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index e0089e5c4a8..c9d5dbe48ff 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -749,10 +749,9 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({ return this._model.call('name_create', [name], {context: this._model.context()}); }, - 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); |
