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
|Asked: 7/9/13, 5:13 AM|
|Seen: 2388 times|
|Last updated: 3/16/15, 8:10 AM|