您的位置:首页 > 大数据 > 人工智能

Openerp几个Email问题处理方法

2015-08-14 15:30 387 查看
(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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  openerp