Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5493 Lượt xem


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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 24
1505
0
thg 1 25
1399
2
thg 6 23
1782
0
thg 5 23
1841
1
thg 4 23
32153