Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7805 Näkymät

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
Hylkää

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

Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää

works

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
heinäk. 25
4683
2
marrask. 24
28592
2
toukok. 24
7527
3
maalisk. 24
6955
0
maalisk. 24
1575