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.

0

ir.needaction_mixin get_needaction_user_ids not being called

By
Galal Aly
on 4/15/14, 11:55 AM 2,142 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

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

0 follower(s)

Stats

Asked: 4/15/14, 11:55 AM
Seen: 2142 times
Last updated: 3/16/15, 8:10 AM