コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4307 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 19
21208
2
8月 18
4696
2
5月 17
6018
5
2月 17
11491
2
3月 16
4723