Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
6089 มุมมอง

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)    
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
4507
2
ธ.ค. 24
7679
How to ORDER BY? [Odoo 10] แก้ไขแล้ว
2
พ.ย. 24
28442
2
พ.ค. 24
7418
3
มี.ค. 24
6827