Skip to content
Snippets Groups Projects
Commit 8098b037 authored by Pierre-Yves Dufays's avatar Pierre-Yves Dufays
Browse files

[FIX] test_mass_mailing, {test_}mail: always apply blacklist for mass mailing


Always apply the blacklist in mass_mail composition mode regardless of the
recipient model implementing mail.thread.blacklist or not.

This solves the problem of mail sent to black listed address for model not
inheriting from mail.thread.blacklist.

Technical notes:
- it has been done in mail.compose.message _get_blacklist_record_ids ignoring
the mixin mail.thread.blacklist to avoid model change in stable.
- some tests have one added query because the blacklist is now queried for each
batch mail sends even if the model of the recipient doesn't implement
mail.thread.blacklist.

Task-2834862

closes odoo/odoo#96722

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 8b16d691
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment