Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
6098 Ansichten

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.  

Avatar
Verwerfen
Beste Antwort

did you find a solution please !


Avatar
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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)    
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juli 25
4523
2
Dez. 24
7691
2
Nov. 24
28443
2
Mai 24
7422
3
März 24
6845