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

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?**

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 23
2779
0
thg 2 16
3147
1
thg 1 25
3412
0
thg 11 17
2897
1
thg 12 23
4688