[FIX] Action counter: renamed filter automatically added when clicking on the counter, from needaction_pending to message_unread.

bzr revid: tde@openerp.com-20121015102135-hnnd57fi187m0j0a
This commit is contained in:
Thibault Delavallée
2012-10-15 12:21:35 +02:00
parent fca9f19f76
commit faf49e3fcb
+1 -1
View File
@@ -1116,7 +1116,7 @@ instance.web.WebClient = instance.web.Client.extend({
.pipe(function (result) {
var action = result;
if (options.needaction) {
action.context.search_default_needaction_pending = true;
action.context.search_default_message_unread = true;
}
return $.when(self.action_manager.do_action(action, null, true)).fail(function() {
self.menu.open_menu(options.previous_menu_id);