跳至內容
選單
此問題已被標幟
3 回覆
6112 瀏覽次數

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
4539
2
12月 24
7705
2
11月 24
28446
2
5月 24
7427
3
3月 24
6851