Openerp几个Email问题处理方法

本文解决Odoo中合作伙伴自动添加为关注者的问题,并提供方法防止自动发送邮件给客户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值