diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-11-12 15:49:02 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-11-12 15:49:02 +0100 |
| commit | 50668317406bed41029beca1ac2ca0d6d7fd3f7e (patch) | |
| tree | a9e27043a1cc402620b485da65b035cfc700331d /addons/process | |
| parent | 42dd7711b59d5c4774ac921123d64fdbbe1181ce (diff) | |
| parent | 66c21701736bb62ba074d77fb0855ea96adaa28f (diff) | |
[MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112144902-0h2yogjleqnbawp8
Diffstat (limited to 'addons/process')
| -rw-r--r-- | addons/process/static/src/js/process.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/process/static/src/js/process.js b/addons/process/static/src/js/process.js index 2405f6d2aa5..73ca4396ce6 100644 --- a/addons/process/static/src/js/process.js +++ b/addons/process/static/src/js/process.js @@ -20,7 +20,7 @@ instance.web.ViewManager.include({ if(this.active_view == 'form') { this.record_id = this.views[this.active_view].controller.datarecord.id; } - this.process_get_object().pipe(function(process) { + this.process_get_object().then(function(process) { if(process && process.length) { if(process.length > 1) { self.process_selection = process; @@ -30,7 +30,7 @@ instance.web.ViewManager.include({ } } return $.Deferred().resolve(); - }).pipe(function() { + }).then(function() { var def = $.Deferred(); if(self.process_id) { $.when(self.process_graph_get()).done(function(res) { @@ -221,12 +221,12 @@ instance.web.ViewManager.include({ var dataset = new instance.web.DataSet(this, 'ir.values', this.session.user_context); var action_manager = new instance.web.ActionManager(self); dataset.call('get', - ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context]).then(function(res) { + ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context]).done(function(res) { var action = res[0][res[0].length - 1]; self.rpc("/web/action/load", { action_id: action.id, context: dataset.context - }).then(function(result) { + }).done(function(result) { action_manager.replace(self.$el); action_manager.do_action(result.result); }) |
