diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 23:25:36 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2012-10-16 23:25:36 +0530 |
| commit | a9fa006d52e5209a4e44829c735de1fad4d5619e (patch) | |
| tree | 822a484637514619f3e50cc1b26d920cceb32526 /addons/process | |
| parent | e16bd157d9bbe332aefd807a044949c451169cb6 (diff) | |
| parent | 44b468c4664447af693ff772fe0c5a07448e6745 (diff) | |
[MERGE]: Merged with lp:openobject-addons
bzr revid: nco@tinyerp.com-20121010052527-j2vq0brfl7haornw
bzr revid: nco@tinyerp.com-20121012090351-oq3hdd7lsu8nrmor
bzr revid: atp@tinyerp.com-20121016175536-aw2c8lj15roc061u
Diffstat (limited to 'addons/process')
| -rw-r--r-- | addons/process/static/src/js/process.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/process/static/src/js/process.js b/addons/process/static/src/js/process.js index c593c1569fc..c214dbb0fdf 100644 --- a/addons/process/static/src/js/process.js +++ b/addons/process/static/src/js/process.js @@ -216,13 +216,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], - function(res) { + ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context]).then(function(res) { var action = res[0][res[0].length - 1]; self.rpc("/web/action/load", { action_id: action.id, context: dataset.context - }, function(result) { + }).then(function(result) { action_manager.replace(self.$el); action_manager.do_action(result.result); }) @@ -239,7 +238,7 @@ instance.web.ViewManager.include({ title: _t('Process') }); var form_controller = pop.view_form; - pop.on('on_write_complete', self, self.initialize_process_view); + pop.on('write_completed', self, self.initialize_process_view); } }); }; |
