diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2012-11-19 13:56:13 +0100 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2012-11-19 13:56:13 +0100 |
| commit | e298cdfa82fc74d5a88ef7f538464aa811897e16 (patch) | |
| tree | 28df9e88a88d81013b20ce59608dfe8c1030b682 /addons/process/static/src/js/process.js | |
| parent | b0b9b6191571917e97029c8d186ba7c0a00d90f5 (diff) | |
| parent | 66afff1b52b7ab6ab8c340e18960fb6367cfb714 (diff) | |
[MERGE]merge with latest addons trunk
bzr revid: csn@openerp.com-20121119125613-211aykfipa9l59q3
Diffstat (limited to 'addons/process/static/src/js/process.js')
| -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); }) |
