[FIX] Menu NeedAction: Uncaught TypeError: Cannot call method 'do_reload_needaction' of undefined

bzr revid: chm@openerp.com-20130513125915-clr79swr5amcjkio
This commit is contained in:
Christophe Matthieu 2013-05-13 14:59:15 +02:00
commit 43adb00fb2
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); args.push(context);
return dataset.call_button(action_data.name, args).then(handler).then(function () { return dataset.call_button(action_data.name, args).then(handler).then(function () {
if (self.ViewManager.ActionManager) { if (instance.webclient) {
self.ViewManager.ActionManager.__parentedParent.menu.do_reload_needaction(); instance.webclient.menu.do_reload_needaction();
} }
}); });
} else if (action_data.type=="action") { } else if (action_data.type=="action") {