-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mail_notification_custom_subject: Make the subject_template fie…
…ld translatable TT52259
- Loading branch information
1 parent
32e72be
commit f2d95df
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,29 +2,27 @@ | |
# Copyright 2022 Tecnativa - Víctor Martínez | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
# pylint: disable=C8107 | ||
from odoo.tests import common | ||
from odoo.tests import new_test_user | ||
from odoo.tools import mute_logger | ||
|
||
from odoo.addons.base.tests.common import BaseCommon | ||
|
||
class TestMailNotificationCustomSubject(common.TransactionCase): | ||
|
||
class TestMailNotificationCustomSubject(BaseCommon): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
cls.partner_1, cls.partner_2 = ( | ||
cls.env["res.partner"] | ||
.with_context(tracking_disable=True) | ||
.create( | ||
[ | ||
{"name": "Test partner 1", "email": "[email protected]"}, | ||
{"name": "Test partner 2", "email": "[email protected]"}, | ||
] | ||
) | ||
cls.partner_1, cls.partner_2 = cls.env["res.partner"].create( | ||
[ | ||
{"name": "Test partner 1", "email": "[email protected]"}, | ||
{"name": "Test partner 2", "email": "[email protected]"}, | ||
] | ||
) | ||
cls.admin = common.new_test_user(cls.env, "boss", "base.group_system") | ||
cls.admin = new_test_user(cls.env, "boss", "base.group_system") | ||
|
||
def setUp(self): | ||
super().setUp() | ||
self.uid = common.new_test_user(self.env, "worker") | ||
self.uid = new_test_user(self.env, "worker") | ||
|
||
def test_email_subject_template_overrides(self): | ||
with self.with_user("boss"): | ||
|