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

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
use of _track and track_visibility แก้ไขแล้ว
1
ธ.ค. 19
21226
2
ส.ค. 18
4714
2
พ.ค. 17
6065
5
ก.พ. 17
11550
2
มี.ค. 16
4766