diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-01-17 14:14:16 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-01-17 14:14:16 +0100 |
| commit | 8f1c2bfc9183d73549d3cf3a771edf2232eeeb12 (patch) | |
| tree | 89b45700d0a16daedd2b59d7f8adbbe9093ae7dd /addons/mail/tests/test_mail_message.py | |
| parent | bbbf317fd38c367c71df1ab2469277573df801c9 (diff) | |
[FIX] mail: force mail.message linked record invalidation
Diffstat (limited to 'addons/mail/tests/test_mail_message.py')
| -rw-r--r-- | addons/mail/tests/test_mail_message.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/mail/tests/test_mail_message.py b/addons/mail/tests/test_mail_message.py index e6e78fe9254..8cad520ce8b 100644 --- a/addons/mail/tests/test_mail_message.py +++ b/addons/mail/tests/test_mail_message.py @@ -445,3 +445,8 @@ class TestMailMessage(TestMail): {'subject': 'Subject', 'body': 'Body text'}, {'default_composition_mode': 'comment', 'default_parent_id': pigs_msg_id}) mail_compose.send_mail(cr, user_raoul_id, [compose_id]) + + def test_60_cache_invalidation(self): + msg_cnt = len(self.group_pigs.message_ids) + self.group_pigs.message_post(body='Hi!', subject='test') + self.assertEqual(len(self.group_pigs.message_ids), msg_cnt + 1) |
