Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2498 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 23
2937
0
ส.ค. 23
1503
Purchase order approval notification แก้ไขแล้ว
1
ต.ค. 15
7460
3
ก.พ. 18
7843
2
ส.ค. 25
477