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

I need to prevent email sending from the mass_mailing module. In res.partner I added a field "email_notifications" and unless this is True no email from the mass_mailing module should be sent.

I'm looking at the mass_mailing module and I don't see any relation or partner_id on which I could write a control to check the status of "email_notifications". The only thing that I found is that it searches for email and name in res.partner in the module "mail.mass_mailing_contact" and more users can have the same email.

So any suggestions how to prevent the mass_mailing to sent email to those that have "email_notifications" set to false in res.partner model?

I need to do this because of GDPR.

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

I think I figured it out. On the modules install/upgrade it sets "opt_out" field to True for all users that haven't been shown the GDPR compliance page or have it set to receive email notifications.

When the user checks the option to receive email notification the "opt_out" field is set to False.  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
8
thg 4 23
18650
3
thg 3 19
4615
1
thg 7 17
4915
2
thg 12 16
6388
1
thg 1 18
8394