(1)解决Odoo将合作伙伴自动添加为关注者的问题
参考url:https://www.odoo.com/fr_FR/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.
(2)防止Odoo自动发送邮件给客户
参考URL:https://www.odoo.com/fr_FR/forum/help-1/question/how-to-avoid-sending-notifications-per-email-2489