Odoo Help

0

ir.needaction_mixin get_needaction_user_ids not being called

By
Galal Aly
on 4/15/14, 11:55 AM 2,889 views

Hello,

I am new to OpenERP (v7) development.

I am trying to get the notification icon to appear and from what I've read the right thing to do is to inherit ir.needaction_mixin and override the get_needaction_user_ids method.

The problem is, nothing happens. I added a print statement and the server's console does not show the message.

class seafarer(osv.osv):
    _name = "seafarer"

    _rec_name = "full_name"

    _inherit = ['mail.thread', 'ir.needaction_mixin']
    def get_needaction_user_ids(self, cr, uid, ids, context=None):
        print 'Hello World'
        a = []
        a[1] = [1]
        return a

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

Question tools

1 follower(s)

Stats

Asked: 4/15/14, 11:55 AM
Seen: 2889 times
Last updated: 4/29/17, 2:30 AM