diff options
| author | Raphael Collet <rco@odoo.com> | 2021-02-16 13:53:48 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2021-02-16 13:53:48 +0000 |
| commit | 329f65df4dbf3d6d67c563d5d3b902f2c60343f7 (patch) | |
| tree | c9461aed2a4de78f6270aa2789098d1df32896bf /addons/mass_mailing/tests | |
| parent | 1c665d2f095978976be41c0c1c6513a876c30145 (diff) | |
[FIX] mass_mailing: missing flush() in test class mixin
This SavepointCase mixin is combined with a TransactionCase mixin, which
is not ideal. Adding an explicit flush() in the SavepointCase avoids an
infinite loop in a child test class (TestMassMailingControllers).
closes odoo/odoo#66209
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/mass_mailing/tests')
| -rw-r--r-- | addons/mass_mailing/tests/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/mass_mailing/tests/common.py b/addons/mass_mailing/tests/common.py index 8c3925d7527..6b893e7e0b3 100644 --- a/addons/mass_mailing/tests/common.py +++ b/addons/mass_mailing/tests/common.py @@ -78,6 +78,8 @@ class MassMailCommon(MailCommon, MassMailCase): cls.email_reply_to = 'MyCompany SomehowAlias <test.alias@test.mycompany.com>' + cls.env['base'].flush() + @classmethod def _create_mailing_list(cls): """ Shortcut to create mailing lists. Currently hardcoded, maybe evolve |
