Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2785 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 24
4132
1
jun. 24
3140
0
fev. 23
1726
2
set. 22
3052
0
fev. 20
2756