Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2355 Vizualizări

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.

Imagine profil
Abandonează

can you share the code?

Cel mai bun răspuns

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)

Imagine profil
Abandonează
Autor Cel mai bun răspuns

no code, only odoo GUI config.

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 23
2828
0
aug. 23
1404
1
oct. 15
7351
3
feb. 18
7688
5
iul. 25
2566