diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-02-10 12:38:52 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-02-10 13:05:04 +0000 |
| commit | 5018b01dc7e0e5f2c2198367f13ec41b1ed402c7 (patch) | |
| tree | 203d080acdde573908db7eff49030adbb924b4c7 /addons/test_mail/tests | |
| parent | b7ade94c30cfb78dbb94d01b76be17f7175e1eb2 (diff) | |
[IMP] mail, test_mail, hr_holidays: remove obsolete out of office
The customizable "out of office" text was removed from the editable views as
part of task-2053585, but some places in the code were still using it, even
though it was never set anymore.
This commit removes the obsolete code.
Part of task-2171864
closes odoo/odoo#44968
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/test_mail/tests')
| -rw-r--r-- | addons/test_mail/tests/test_mail_channel.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/addons/test_mail/tests/test_mail_channel.py b/addons/test_mail/tests/test_mail_channel.py index e14fd727eae..3fb07f010ce 100644 --- a/addons/test_mail/tests/test_mail_channel.py +++ b/addons/test_mail/tests/test_mail_channel.py @@ -195,19 +195,6 @@ class TestChannelFeatures(TestMailCommon): self.test_channel.message_post(body="Test", message_type='comment', subtype_xmlid='mail.mt_comment') self.assertSentEmail(self.test_channel.env.user.partner_id, [self.test_partner]) - @mute_logger('odoo.addons.mail.models.mail_mail') - def test_channel_out_of_office(self): - self.user_employee.out_of_office_message = 'Out' - test_chat = self.env['mail.channel'].with_context(self._test_context).create({ - 'channel_partner_ids': [(4, self.user_employee.partner_id.id), (4, self.user_admin.partner_id.id)], - 'public': 'private', - 'channel_type': 'chat', - 'email_send': False, - 'name': 'test' - }) - infos = test_chat.with_user(self.user_admin).channel_info() - self.assertEqual(infos[0]['direct_partner'][0]['out_of_office_message'], 'Out') - @tagged('moderation') class TestChannelModeration(TestMailCommon): |
