تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
8550 أدوات العرض

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
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 17
3965
0
سبتمبر 18
5666
7
يناير 16
6147
1
ديسمبر 15
4448
2
ديسمبر 15
635