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


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


アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 24
1513
0
1月 25
1406
2
6月 23
1786
0
5月 23
1842
1
4月 23
32159