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.
คำถามนี้ถูกตั้งค่าสถานะ
3
ตอบกลับ
3889
มุมมอง
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
|
4278 | ||
|
|
0
ส.ค. 23
|
2618 | ||
|
Purchase order approval notification
แก้ไขแล้ว
|
|
1
ต.ค. 15
|
9014 | |
|
|
4
เม.ย. 26
|
9554 | ||
|
|
1
เม.ย. 26
|
4632 |
can you share the code?