Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1497 Widoki

Hi,


we have a requirement where an auto-alert email is to be triggered 30 days before the visa expiry date of an employee.  We are capturing this in the employee master.


How to set the coding in the Scheduled Action section.  Please help.


Regards,

Gowri Shankar

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Even if you are using the schedule action you need to write a python code to achieve this need. Below is a simple app for you. We can upload documents to the employee in the employee page and can set the expiry date and also email notifications settings. You can upload the visa document as a document of the employee and set the expiry date and also put the email notification type and mention the before number of days(30) that you need the notification.

https://apps.odoo.com/apps/modules/14.0/oh_employee_documents_expiry/

If you need to write the scheduled action then check the following in the above app

1.record with id employee_data_reminder which is the scheduled action record

2.function with name mail_reminder which is the python function used in scheduled action

Regards

Awatar
Odrzuć