Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
6441 Visualizzazioni

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
Abbandona
Risposta migliore

did you find a solution please !


Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
5242
2
dic 24
8106
2
nov 24
28918
2
mag 24
7829
3
mar 24
7237