Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
8546 มุมมอง

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Needaction notification number แก้ไขแล้ว
1
ก.ย. 17
3964
0
ก.ย. 18
5665
7
ม.ค. 16
6144
1
ธ.ค. 15
4447
2
ธ.ค. 15
635