تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6109 أدوات العرض

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
يوليو 25
4534
2
ديسمبر 24
7700
2
نوفمبر 24
28444
2
مايو 24
7425
3
مارس 24
6851