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.
Denna fråga har flaggats
3
Svar
3885
Vyer
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.
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
1
apr. 23
|
4275 | ||
|
|
0
aug. 23
|
2612 | ||
|
|
1
okt. 15
|
9010 | ||
|
|
4
apr. 26
|
9554 | ||
|
|
1
apr. 26
|
4632 |
can you share the code?