コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7256 ビュー

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.

アバター
破棄

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

最善の回答

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)


アバター
破棄
最善の回答

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


アバター
破棄

works

関連投稿 返信 ビュー 活動
2
11月 24
27741
2
5月 24
6967
3
3月 24
6448
0
3月 24
1364
3
2月 24
12628