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

By default subscribers get email messages once the new task in a project is created. How it can be tailored so that unless the projects has checkbox "Send e-mail on new task" checked it will not send e-mails on new task?


I know how to add a custom field to project.project model. But don't know the next step.


**What action to override to not send the email when a new task is created and "Send e-mail on new task" is not checked for project?**

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

Hi Willmore,

You need to check with mail.message _notify() method, this is method would be filtering partners(followers) to send mail.
So i would suggest you work with this method find out object(project.project) with custom field, if custom field is False, then set partner list to [ ], else call super.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 23
2769
0
ก.พ. 16
3144
1
ม.ค. 25
3380
0
พ.ย. 17
2879
1
ธ.ค. 23
4682