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

How to setup an email notification to manager when an employee requests for leave and also when manager approves or refuses the leave (email notification is to be sent to the employee regarding the status) in Odoo 10. Help needed. I'm able to send invitation mail & password reset email to the respective user upon creation from the odoo system.  

아바타
취소
베스트 답변

did you find a solution please !


아바타
취소
작성자 베스트 답변

Mohamed Zouine! Thanks for the above information furnished. I'm still a beginner and in need of detailed explanations.(tutorial sort of thing)

아바타
취소
베스트 답변

Hi, you should first create email templates for the request/approval/refection.

Then you create a function and add it to the create button and it should be like this :

template = self.env.ref('module_where_tepmlates_are_defined.your_template_id')
self.env['mail.template'].browse(template.id).send_mail(self.id)    
아바타
취소
관련 게시물 답글 화면 활동
2
7월 25
4700
2
12월 24
7815
2
11월 24
28605
2
5월 24
7537
3
3월 24
6961