[FIX] Load subflow actions.

bzr revid: vda@tinyerp.com-20110921094823-4rrqbdov4s0csk0t
This commit is contained in:
Vaibhav (OpenERP) 2011-09-21 15:18:23 +05:30
parent 6ca5e79d89
commit a7a2564542
1 changed files with 9 additions and 3 deletions

View File

@ -176,10 +176,16 @@ QWeb.add_template('/web_process/static/src/xml/web_process.xml');
.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];
var action_manager = new openerp.web.ActionManager(self);
action_manager.appendTo(self.widget_parent.$element);
action_manager.do_action(action);
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.do_action(result.result);
});
}
);
}