-
- Downloads
[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:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/mail/wizard/mail_compose_message.py 18 additions, 4 deletionsaddons/mail/wizard/mail_compose_message.py
- addons/test_mail/tests/test_performance.py 1 addition, 1 deletionaddons/test_mail/tests/test_performance.py
- addons/test_mass_mailing/tests/test_mailing.py 23 additions, 1 deletionaddons/test_mass_mailing/tests/test_mailing.py
- addons/test_mass_mailing/tests/test_performance.py 1 addition, 1 deletionaddons/test_mass_mailing/tests/test_performance.py
Loading
Please register or sign in to comment