İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7625 Görünümler

I want to send a mail from template that won't be seen in mail.message chatter in the bottom of the form view.

Do I've to set that on the mail template or any other way? For mail sending I'm using the send_mail method from mail_template model.

I've set the auto_delete to true on the template, but it's still shown to long in the chatter.

Avatar
Vazgeç

Hi Samo, did you solve this issue? I have the same problem..

En İyi Yanıt

Please try use auto_delete

email_values = {'auto_delete': True}
template.send_mail(employee.id, force_send=True, raise_exception=False, email_values=email_values)


Avatar
Vazgeç
En İyi Yanıt

Hi


In V12, add email_values={'model': None, 'res_id': None}
exemple :

template.send_mail(employee.id, force_send=True, raise_exception=False, email_values={'model': None, 'res_id': None})


Avatar
Vazgeç

works

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 25
4439
2
Kas 24
28394
2
May 24
7361
3
Mar 24
6793
0
Mar 24
1501