Hello forum
We want to use discussion groups as group mail accounts for specific functions. Therefore the auto-add followers must be deactivated. Mails to contact@company.com should not add the costumer to the group.
How to achive that?
The solution in this thread worked for me to deactivate auto-add in mails to partners: code see below
https://www.odoo.com/forum/help-1/question/how-to-stop-openerp-from-adding-partner-as-followers-automatically-25601
This behavious is actually generating many issues. On my side, i have changed the file mail_thread.py from this :
# automatically subscribe recipients if asked to
if context.get('mail_post_autofollow') and thread_id and partner_ids:
partner_to_subscribe = partner_ids
if context.get('mail_post_autofollow_partner_ids'):
partner_to_subscribe = filter(lambda item: item in context.get('mail_post_autofollow_partner_ids'), partner_ids)
self.message_subscribe(cr, uid, [thread_id], list(partner_to_subscribe), context=context)
to this :
# automatically subscribe recipients if asked to
#if context.get('mail_post_autofollow') and thread_id and partner_ids:
# partner_to_subscribe = partner_ids
# if context.get('mail_post_autofollow_partner_ids'):
# partner_to_subscribe = filter(lambda item: item in context.get('mail_post_autofollow_partner_ids'), partner_ids)
# self.message_subscribe(cr, uid, [thread_id], list(partner_to_subscribe), context=context)
Now adding automatically follower is disabled.