diff options
| author | pankita shah (Open ERP) <shp@tinyerp.com> | 2012-10-17 18:53:34 +0530 |
|---|---|---|
| committer | pankita shah (Open ERP) <shp@tinyerp.com> | 2012-10-17 18:53:34 +0530 |
| commit | 81a83df7eabfa45903780212b564f78952f31306 (patch) | |
| tree | e9c793bacf58dc0b093cef3f1ffd34490544561f /addons/process/static/src/js/process.js | |
| parent | da24be3c605d0c478258d3f7cd418d58b967a247 (diff) | |
| parent | 04eef2c7a0775a0c6c7252c990d5c691effc262e (diff) | |
[merged] with lp:openobject-addons
bzr revid: shp@tinyerp.com-20121017132334-zlx1havka8hschv5
Diffstat (limited to 'addons/process/static/src/js/process.js')
| -rw-r--r-- | addons/process/static/src/js/process.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/addons/process/static/src/js/process.js b/addons/process/static/src/js/process.js index 57c6f196012..c214dbb0fdf 100644 --- a/addons/process/static/src/js/process.js +++ b/addons/process/static/src/js/process.js @@ -6,7 +6,6 @@ instance.web.ViewManager.include({ var self = this; var _super = this._super(); this.process_help = this.action ? this.action.help : ''; - self.process_help = $(this.process_help).text(); if(this.action) { this.process_model = this.action.res_model; } else { @@ -217,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); }) @@ -240,9 +238,7 @@ instance.web.ViewManager.include({ title: _t('Process') }); var form_controller = pop.view_form; - pop.on_write_completed.add_last(function() { - self.initialize_process_view(); - }); + pop.on('write_completed', self, self.initialize_process_view); } }); }; |
