diff options
| author | Vaibhav (OpenERP) <vda@tinyerp.com> | 2012-01-20 19:11:20 +0530 |
|---|---|---|
| committer | Vaibhav (OpenERP) <vda@tinyerp.com> | 2012-01-20 19:11:20 +0530 |
| commit | f5e4a28727fe319963969f293f70e79d45e835b1 (patch) | |
| tree | 5f96b64969fdad1ec5761ac2d1c165a583b9f9ea /addons/web_process/static/src/js | |
| parent | 7b38be73702ad7bf41a7332b64d07ae9aa047672 (diff) | |
[FIX] replace views instance with new action.
lp bug: https://launchpad.net/bugs/919175 fixed
bzr revid: vda@tinyerp.com-20120120134120-ugqv7yzer7gp31z8
Diffstat (limited to 'addons/web_process/static/src/js')
| -rw-r--r-- | addons/web_process/static/src/js/process.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js index 601973d4cb5..5bfd1d39587 100644 --- a/addons/web_process/static/src/js/process.js +++ b/addons/web_process/static/src/js/process.js @@ -241,14 +241,13 @@ openerp.web_process = function (openerp) { dataset.call('get', ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context], function(res) { - self.$element.empty(); var action = res[0][res[0].length - 1]; self.rpc("/web/action/load", { action_id: action.id, context: dataset.context }, function(result) { var action_manager = new openerp.web.ActionManager(self); - action_manager.appendTo(self.widget_parent.$element); + action_manager.replace(self.$element); action_manager.do_action(result.result); }); }); |
