Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2753 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 24
4100
1
čvn 24
3132
0
úno 23
1722
2
zář 22
3048
0
úno 20
2748