Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2798 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Disable Followers Đã xử lý
1
thg 7 24
4208
1
thg 6 24
3152
0
thg 2 23
1730
2
thg 9 22
3060
0
thg 2 20
2769