[FIX] needaction: issue 592134 'Uncaught TypeError: Cannot call method 'do_reload_needaction' of undefined'

bzr revid: chm@openerp.com-20130513112202-32sko79k23v5seq2
This commit is contained in:
Christophe Matthieu 2013-05-13 13:22:02 +02:00
parent f97d0b48e5
commit 42ad806345
1 changed files with 2 additions and 2 deletions

View File

@ -1369,8 +1369,8 @@ instance.web.View = instance.web.Widget.extend({
}
args.push(context);
return dataset.call_button(action_data.name, args).then(handler).then(function () {
if (self.ViewManager.ActionManager) {
self.ViewManager.ActionManager.__parentedParent.menu.do_reload_needaction();
if (instance.webclient) {
instance.webclient.menu.do_reload_needaction();
}
});
} else if (action_data.type=="action") {