Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4322 Zobrazení

In the https://doc.openerp.com/trunk/mail/mail_subtype/ page:

There is this code:

def message_subscribe_udpate_subtypes(self, cr, uid, ids, user_id, subtype_ids,context=None):

followers_obj = self.pool.get('mail.followers') followers_ids = followers_obj.search(cr, uid, [('res_model', '=', self._name), ('res_id', 'in', ids)]) return followers_obj.write(cr, uid, followers_ids, {'subtype_ids': [(6, 0 , subtype_ids)]}, context = context)

What is the meaning of  [(6, 0 , subtype_ids)] and how do I use it for my custom message subtypes?

I need to check some of the items in the list by default when a user is added as a follower.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 19
21210
2
srp 18
4697
2
kvě 17
6019
5
úno 17
11499
2
bře 16
4732