Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2395 Visualizzazioni

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
Abbandona

can you share the code?

Risposta migliore

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
Abbandona
Autore Risposta migliore

no code, only odoo GUI config.

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 23
2861
0
ago 23
1434
1
ott 15
7397
3
feb 18
7752
2
ago 25
273