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`
About This Community
Odoo Training Center
|Asked: 7/9/13, 5:13 AM|
|Seen: 3382 times|
|Last updated: 3/16/15, 8:10 AM|