[MERGE] Action counter: fixed the name of the filter automatically added when clicking on the counter. The filter name is statically defined as message_unread, and all modules using the need action mechanism should define this filter.

bzr revid: tde@openerp.com-20121016075230-r6zka92d3ty2t9ac
This commit is contained in:
Thibault Delavallée 2012-10-16 09:52:30 +02:00
commit 015c07bc6f
1 changed files with 1 additions and 1 deletions

View File

@ -1119,7 +1119,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);