Skip to Content
Menú
This question has been flagged
2 Respostes
2377 Vistes

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.

Avatar
Descartar

can you share the code?

Best Answer

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)

Avatar
Descartar
Autor Best Answer

no code, only odoo GUI config.

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 23
2853
0
d’ag. 23
1430
1
d’oct. 15
7382
3
de febr. 18
7746
2
d’ag. 25
250