Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2767 Tampilan

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
Disable Followers Diselesaikan
1
Jul 24
4123
1
Jun 24
3136
0
Feb 23
1724
2
Sep 22
3052
0
Feb 20
2754