From b2e7caca7d1c7102a51594c498c0052e2cd1bfa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 18 Oct 2012 17:33:34 +0200 Subject: [PATCH] [ADD] mail: added forgottent mail_favorite_view.xml file. bzr revid: tde@openerp.com-20121018153334-g7fv8mv3a8utrx76 --- addons/mail/mail_favorite_view.xml | 44 ++++++++++++++++++++++++++++++ addons/mail/tests/test_mail.py | 10 ++++++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 addons/mail/mail_favorite_view.xml diff --git a/addons/mail/mail_favorite_view.xml b/addons/mail/mail_favorite_view.xml new file mode 100644 index 00000000000..3aa73d5463e --- /dev/null +++ b/addons/mail/mail_favorite_view.xml @@ -0,0 +1,44 @@ + + + + + + + mail.favorite.tree + mail.favorite + + + + + + + + + + mail.favorite.form + mail.favorite + +
+ + + + + + +
+
+
+ + + Favorites + mail.favorite + form + tree,form + + + + + +
+
diff --git a/addons/mail/tests/test_mail.py b/addons/mail/tests/test_mail.py index 5e0d0e1d39c..d85988a6c90 100644 --- a/addons/mail/tests/test_mail.py +++ b/addons/mail/tests/test_mail.py @@ -520,6 +520,10 @@ class test_mail(TestMailMockups): self.assertEqual(message2.subject, _subject, 'mail.message subject incorrect') self.assertEqual(message2.body, group_bird.description, 'mail.message body incorrect') + def test_30_message_read(self): + """ Tests for message_read and expandables. """ + self.assertTrue(1 == 1, 'Test not implemented, do not replace by return True') + def test_40_needaction(self): """ Tests for mail.message needaction. """ cr, uid, user_admin, group_pigs = self.cr, self.uid, self.user_admin, self.group_pigs @@ -593,7 +597,7 @@ class test_mail(TestMailMockups): self.assertEqual(5, len(group_pigs.message_ids), 'group should contain 5 messages') self.assertEqual(2, len(msg1.child_ids), 'msg1 should have 2 children now') - def test_60_vote(self): + def test_60_message_vote(self): """ Test designed for the vote/unvote feature. """ cr, uid = self.cr, self.uid user_admin = self.res_users.browse(cr, uid, uid) @@ -622,3 +626,7 @@ class test_mail(TestMailMockups): msg1.refresh() # Test: msg1 has Bert as voter self.assertEqual(set(msg1.vote_user_ids), set([user_bert]), 'after unvoting for Admin, Bert is not the voter') + + def test_70_message_favorite(self): + """ Tests for favorites. """ + self.assertTrue(1 == 1, 'Test not implemented, do not replace by return True')