Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2440 Ansichten

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
Verwerfen

can you share the code?

Beste Antwort

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
Verwerfen
Autor Beste Antwort

no code, only odoo GUI config.

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 23
2895
0
Aug. 23
1445
1
Okt. 15
7420
3
Feb. 18
7786
2
Aug. 25
360