This question has been flagged
1 Reply
2874 Views

Hello to all. Anyone can help me how to put notification on menu just like the image below? And can any one explain how does it works? Any help is much appreciated.

Avatar
Discard
Best Answer

If I'm not mistaken it is part of the 'ir.needaction_mixin' feature.  You need to inherit from 'ir.needaction_mixin', then you the method _needaction_domain_get for that model that returns the domain that will be used to count the number of records.

Not many models implement this.  One of the example (which you pointed out as well) is mail.message: odoo/addons/mail/mail_message.py

Avatar
Discard
Author

Oh thanks sir for the response. At last i was able to put notification on the menu. Thanks again for the help. :)

Pleasure to help.