[FIX] replace views instance with new action.

lp bug: https://launchpad.net/bugs/919175 fixed

bzr revid: vda@tinyerp.com-20120120134120-ugqv7yzer7gp31z8
This commit is contained in:
Vaibhav (OpenERP)
2012-01-20 19:11:20 +05:30
parent 7b38be7370
commit f5e4a28727
+1 -2
View File
@@ -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);
});
});