Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
8561 Visualizzazioni

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
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
set 17
3969
0
set 18
5668
7
gen 16
6159
1
dic 15
4451
2
dic 15
635