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.
This question has been flagged
3
Odpovědi
3855
Zobrazení
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
|
1
dub 23
|
4233 | ||
|
|
0
srp 23
|
2592 | ||
|
Purchase order approval notification
Vyřešeno
|
|
1
říj 15
|
8997 | |
|
|
4
dub 26
|
9511 | ||
|
|
1
dub 26
|
4625 |
can you share the code?