Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2357 Представления

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.

Аватар
Отменить

can you share the code?

Лучший ответ

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)

Аватар
Отменить
Автор Лучший ответ

no code, only odoo GUI config.

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
апр. 23
2830
0
авг. 23
1413
1
окт. 15
7354
3
февр. 18
7700
5
июл. 25
2582