Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2764 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 24
4113
1
jun. 24
3133
0
feb. 23
1723
2
sep. 22
3050
0
feb. 20
2754