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

I created an email template and automated action to send alert whenever an leave/timeoff is approved. I can see the mails in odoo emails section. There's a send now button. How can it be send automatically whenever leave approved.

アバター
破棄

can you share the code?

最善の回答

There is force_send=True option to send emails immediately (when you send email from code). But I don't see this option available in Automated Action - send email.
Try to choose Action To Do - Exectute Python Code:

email_template = env['mail.template'].browse(your_email_template_id)
email_template.send_mail(record.id, force_send=True)

アバター
破棄
著作者 最善の回答

no code, only odoo GUI config.

This forum is not letting to post screenshots too. Is there anyway i can share screenshots.

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 23
2880
0
8月 23
1438
1
10月 15
7408
3
2月 18
7777
2
8月 25
309