Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi, I'm using openerp V7. I am trying to use the need action mechanism which would show the no. of pending action on the menu. But i don't understand how to integrate it with the menu. I inherited the class and implemented the override method as it was documented. but i have no idea what to do next?
to make a need action your model must inherit from
ir.needaction_mixin and add a
class MyModel(osv.Model): _name = 'my.model' _inherit = [ 'my.model', 'ir.needaction_mixin', ] def _needaction_domain_get(self, cr, uid, context=None): return `a domain on this model`
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/9/13, 5:13 AM|
|Seen: 2642 times|
|Last updated: 3/16/15, 8:10 AM|