Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
7691 Vizualizări

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.

Imagine profil
Abandonează

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

Cel mai bun răspuns

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)


Imagine profil
Abandonează
Cel mai bun răspuns

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})


Imagine profil
Abandonează

works

Related Posts Răspunsuri Vizualizări Activitate
2
iul. 25
4524
2
nov. 24
28443
2
mai 24
7423
3
mar. 24
6846
0
mar. 24
1530