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


Hello, i need to make a Automated Action on Odoo 12 to auto add the 3 chosen users as followers on create of contact. 

Image: https://ibb.co/yNXf6q3

Contact Manager = Field name: user_id
L2 Manager = Field name: x_studio_l2_manager
L3 Manager = Field name: x_studio_l3_manager

Any suggestion?

Thanks

--Update--

i found solution from  @arryph: Stackoverflow

record.message_subscribe(partner_ids=[record.user_id.partner_id.id, record.x_studio_l2_manager.partner_id.id, record.x_studio_l3_manager.partner_id.id])

Note:
I have the two extra fields type: res.users


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try this:  https://www.odoo.com/forum/help-1/question/add-followers-automatically-39343#answer-129393

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 24
1505
0
ม.ค. 25
1399
2
มิ.ย. 23
1782
0
พ.ค. 23
1841
1
เม.ย. 23
32153