Odoo Help


What is the magic Behind bubble notification of menu item?

Jamshid Chungath
on 1/8/15, 4:51 AM 1,104 views

i find the source code of oe_stat button i couldnt figure out how menu item showing notification of you have 2 unread messages?

where can i configure in menu item?


Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
Atchuthan - Technical Consultant, Sodexis Inc
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/8/15, 5:00 AM

You need to inherit 'ir.needaction_mixin' to your model
I took the example with Mail message model (https://github.com/odoo/odoo/blob/8.0/addons/mail/mail_message.py#L63)

class mail_message(osv.Model):
    _name = 'mail.message'
    _description = 'Message'
    _inherit = ['ir.needaction_mixin']
    def _needaction_domain_get(self, cr, uid, context=None):
        return [('to_read', '=', True)]

So, the same can be applied to your model and set the condition using DOMAIN

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 1/8/15, 4:51 AM
Seen: 1104 times
Last updated: 3/16/15, 8:10 AM