diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-07-17 13:18:38 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-07-17 15:50:33 +0000 |
| commit | 49d2899fbd3e9b1c3b689fd5bdeb7f4fa0f6bfd1 (patch) | |
| tree | 209ed37e6ea42a8c116109d0e48ad1a07ce4d69c /addons/test_mass_mailing/tests/test_performance.py | |
| parent | 2011c24dd7530c56ba883ca2a468997c961a53fb (diff) | |
[REF] mass_mailing: rename mail.mass_mailing model
PURPOSE
Mass mailing is currently a bit messy. As SMS will be added as a way to notify
people in mass through SMS let us take this opportunity to somehow clean this
application: organization, light code cleaning, model renaming.
SPECIFICATIONS
Rename mail.mass_mailing model to mailing.mailing. Rationale :
* mailing is now a prefix for mass mailing models;
* mailing.mailing is easier to read / find / understand;
Note that mail.mass_mailing.campaign is not updated as it is likely to be
removed soon and replaced by simple utm.campaign model.
MIGRATION
mail.mass_mailing model -> mailing.mailing
mail_mass_mailing table -> mailing_mailing
LINKS
Task ID 2037906
Preparing task ID 1997464 (SMS addition in mass mailing)
PR #34938
Diffstat (limited to 'addons/test_mass_mailing/tests/test_performance.py')
| -rw-r--r-- | addons/test_mass_mailing/tests/test_performance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mass_mailing/tests/test_performance.py b/addons/test_mass_mailing/tests/test_performance.py index 2bc18cf1f99..b3ec164653d 100644 --- a/addons/test_mass_mailing/tests/test_performance.py +++ b/addons/test_mass_mailing/tests/test_performance.py @@ -41,7 +41,7 @@ class TestMassMailPerformance(TestMassMailPerformanceBase): @warmup @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink', 'odoo.tests') def test_send_mailing(self): - mailing = self.env['mail.mass_mailing'].create({ + mailing = self.env['mailing.mailing'].create({ 'name': 'Test', 'subject': 'Test', 'body_html': '<p>Hello <a role="button" href="https://www.example.com/foo/bar?baz=qux">quux</a><a role="button" href="/unsubscribe_from_list">Unsubscribe</a></p>', @@ -79,7 +79,7 @@ class TestMassMailBlPerformance(TestMassMailPerformanceBase): @warmup @mute_logger('odoo.addons.mail.models.mail_mail', 'odoo.models.unlink', 'odoo.tests') def test_send_mailing_w_bl(self): - mailing = self.env['mail.mass_mailing'].create({ + mailing = self.env['mailing.mailing'].create({ 'name': 'Test', 'subject': 'Test', 'body_html': '<p>Hello <a role="button" href="https://www.example.com/foo/bar?baz=qux">quux</a><a role="button" href="/unsubscribe_from_list">Unsubscribe</a></p>', |
