mirror of https://github.com/OCA/web.git
[IMP] reload navbar needaction when a mail was read
parent
ae00081ee2
commit
1994a8b98e
|
@ -26,6 +26,7 @@
|
|||
"summary": "Show the sum of submenus' needaction counters in main menu",
|
||||
"depends": [
|
||||
'web',
|
||||
'mail',
|
||||
],
|
||||
"data": [
|
||||
"data/ir_config_parameter.xml",
|
||||
|
|
|
@ -75,4 +75,15 @@ openerp.web_menu_navbar_needaction = function(instance)
|
|||
});
|
||||
},
|
||||
})
|
||||
|
||||
instance.mail.Thread.include({
|
||||
message_fetch_set_read: function (message_list)
|
||||
{
|
||||
this._super.apply(this, arguments);
|
||||
return this.render_mutex.exec(function()
|
||||
{
|
||||
instance.client.menu.refresh_navbar_needaction();
|
||||
});
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue