From 5018b01dc7e0e5f2c2198367f13ec41b1ed402c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Mon, 10 Feb 2020 12:38:52 +0000 Subject: [IMP] mail, test_mail, hr_holidays: remove obsolete out of office MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/test_mail/tests/test_mail_channel.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'addons/test_mail') 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): -- cgit v1.2.3