コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2788 ビュー

Hello!

I made a customization in the create method of the crm.lead module. Every time a lead is created, automatically a specific user is added as follower by default.

reg = { 
'res_id': record.id,
'res_model': 'crm.lead',
'partner_id': partner_id,
}
if not env['mail.followers'].search([('res_id','=',record.id),('res_model','=','crm.lead'),('partner_id','=',partner_id)]):
    follower_id = env['mail.followers'].create(reg)

The problem is that normally when a user is listed as a follower he is notified with an email. Through this customization however the email notification does not come. Is it possible to send an email to this user automatically?

Thank you


アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 24
4158
1
6月 24
3144
0
2月 23
1726
2
9月 22
3053
0
2月 20
2760