From 07ae0ccc4e4b4f79cf299f2a54ad3ee5e3a250af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 10 Apr 2018 14:59:49 +0200 Subject: [PATCH] [IMP] mail: do not follow activities by default Activities are quite personal and linked to daily jobs of people using it. Being notified of all activities is therefore not considered as default behavior and should be a choice done by users. Subtype linked to logged activities is now not followed by default anymore. It is still configurable through subscription widget or parent subscription (project/task for example). This commit is linked to task ID 1824141. --- addons/crm/tests/test_crm_activity.py | 2 +- addons/mail/data/mail_data.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/tests/test_crm_activity.py b/addons/crm/tests/test_crm_activity.py index b1183ceb0e0..d3d847612d4 100644 --- a/addons/crm/tests/test_crm_activity.py +++ b/addons/crm/tests/test_crm_activity.py @@ -59,7 +59,7 @@ class TestCrmMailActivity(TestCrmCases): self.assertFalse(internal_subtypes) # Add sale manager as follower of default subtypes - self.lead.message_subscribe([self.crm_salemanager.partner_id.id]) + self.lead.message_subscribe([self.crm_salemanager.partner_id.id], subtype_ids=[self.env.ref('mail.mt_activities').id, self.env.ref('mail.mt_comment').id]) activity = self.env['mail.activity'].sudo(self.crm_salesman.id).create({ 'activity_type_id': self.activity1.id, diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index c0d2ac4f890..d528ff42619 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -57,7 +57,7 @@ Activities - +