Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
7956 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona

works

Post correlati Risposte Visualizzazioni Attività
2
lug 25
4917
2
nov 24
28774
2
mag 24
7641
3
mar 24
7095
0
mar 24
1700