'Automatically run python function in odoo with using cron job?
How to run python function automatically and send email in odoo14 without using cron jobs?
Solution 1:[1]
You can use Automation which can be found here : in App Settings, switch to debug mode by adding "?debug=1" in your url, reload the page, then go to the new Technical Menu-tab > Automation - automated action / Server actions
Or using Python Code :
#select an existing template:
template_id = env.ref('event.event_subscription').id
env['mail.template'].browse(template_id).sudo().send_mail(cur_registrations[0].id, force_send=True)
Other resources on this topic :
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


