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

When a user clicks on the "Add follower" link the partner(s) needs to receive a message notifying him that he was added as a follower of the document. I'm not talking about email, I mean a mail.message.

Is there a built-in way to do this? If not, how can I go about implementing it? I thought about extending the wizard for adding followers to additionally create mail.notifications, would that be a good idea?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I ended up inheriting the invite wizard and overriding the add_followers method.

Adding the partner id to the notified_follower_ids field in the mail.mail object automatically creates a notification for the specified partners.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
4142
Disable Followers แก้ไขแล้ว
1
ก.ค. 24
8974
0
ก.พ. 20
3029
0
มี.ค. 15
6149
add followers automatically แก้ไขแล้ว
8
มิ.ย. 24
38014