Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7434 Weergaven

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
Annuleer

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

Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer

works

Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 25
4175
2
nov. 24
28113
2
mei 24
7180
3
mrt. 24
6620
0
mrt. 24
1439