Odoo Help

Welcome!

This community 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.

1

How does menu prompt notification work?

By
Anirudh Lou
on 1/28/15, 4:20 AM 655 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.

1

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/28/15, 5:07 AM

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

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

Anirudh Lou
on 1/29/15, 12:37 AM

Pleasure to help.

Ivan
on 1/29/15, 1:40 AM

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/28/15, 4:20 AM
Seen: 655 times
Last updated: 3/16/15, 8:10 AM