Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2320 Widoki

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.

Awatar
Odrzuć

can you share the code?

Najlepsza odpowiedź

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)

Awatar
Odrzuć
Autor Najlepsza odpowiedź

no code, only odoo GUI config.

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
2781
0
sie 23
1388
1
paź 15
7290
3
lut 18
7619
5
lip 25
2415