Browse Source

[IMP] reload navbar needaction when a mail was read

pull/1028/head
Holger Brunn 9 years ago
parent
commit
1994a8b98e
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 1
      web_menu_navbar_needaction/__manifest__.py
  2. 11
      web_menu_navbar_needaction/static/src/js/web_menu_navbar_needaction.js

1
web_menu_navbar_needaction/__manifest__.py

@ -26,6 +26,7 @@
"summary": "Show the sum of submenus' needaction counters in main menu", "summary": "Show the sum of submenus' needaction counters in main menu",
"depends": [ "depends": [
'web', 'web',
'mail',
], ],
"data": [ "data": [
"data/ir_config_parameter.xml", "data/ir_config_parameter.xml",

11
web_menu_navbar_needaction/static/src/js/web_menu_navbar_needaction.js

@ -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…
Cancel
Save