This question has been flagged
2 Replies
3105 Views

i'm using odoo 9 and i want to know how to create an automatic reminder when employee contract is going to expire by sending an email ?. Is it possible ? any help please ?

Avatar
Discard

If you want reminder that notify about expiration of contract then you can create calendar event.

you can do that by creating a scheduler and call mail template to send reminder mails

Author

thx, but how i can send mails could you help me please ??

Best Answer

If you want to send mail to concerned people ( attendees for ex)  within a reminder, you probably want to check out 
def do_mail_reminder(self, alert)

For me, if you just want to send email, you can just create your template with the employee's email specified in email_to and when your contract's going to expire,you call send_mail function 

Avatar
Discard
Author

thx and please could you tell me where i found def do_mail_reminder(self,alert) because i'm new with odoo and how i create the function send_mail