콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2578 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
1
4월 23
3031
0
8월 23
1582
1
10월 15
7537
3
2월 18
7986
2
8월 25
584