I would like to remove all followers of a document when it is created and/or updated.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
If using the UPDATE THE RECORD action, you can do something like:
If using the EXECUTE PYTHON CODE action, you can do something like:
record['message_follower_ids'] = [(6, 0, False)]
Hello, can you please explain why [(6,0,False)]?
One2many and Many2many fields use a special “commands” format to manipulate the set of records stored in/associated with the field. Read more about this at https://www.odoo.com/documentation/14.0/developer/reference/addons/orm.html#odoo.models.Model.write but note that for v15 and higher, we support a simpler method - discussed at https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html#odoo.fields.Command
Can you provide an example for how to use this in v16? I don't understand the documents you linked to and I am trying to use this to clear the "Organizer" from Calendar Events.
It is probably easier to manage the Subscriptions based on your unique needs - see https://www.odoo.com/forum/help-1/remove-followers-from-so-except-user-211569
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
0
พ.ย. 23
|
2503 | ||
|
3
มี.ค. 25
|
18940 | ||
|
1
ก.ค. 22
|
4213 | ||
|
1
พ.ย. 21
|
3927 | ||
|
8
ก.ค. 17
|
10121 |