Skip to Content
Menu
This question has been flagged
1 Odpoveď
66 Zobrazenia

Hi 

I am working on a custom module and wish to generate scheduled emails for my users. I used Automated Actions to configure the email template. All looks good to me and when i run the scheduled job or run it manually, i see that the cron job is running, but outgoing emails are not getting generated.  I don't see any error on odoo. log. I am on version 18 and on odoo.sh.


I have checked domain filters, assigned user to run the scheduled task as some who has access to the model but to no avail. Can someone help on what could be wrong or some indicator where i can check.


Here are the log entries.

  2025-11-06 06:45:13,528 4 INFO dineshtechcarrot-finalcomplianenov-main-25216498 odoo.addons.base_automation.models.base_automation: Starting time-based automation rule `Send Advanced Notification on Due Date`.

2025-11-06 06:45:13,533 4 INFO dineshtechcarrot-finalcomplianenov-main-25216498 odoo.addons.base_automation.models.base_automation: Time-based automation rule `Send Advanced Notification on Due Date` done.

2025-11-06 06:45:13,536 4 INFO dineshtechcarrot-finalcomplianenov-main-25216498 odoo.addons.base.models.ir_cron: Job 'Automation Rules: check and execute' (19) fully done (#loop 1; done 1; remaining 0; duration 0.02s)




Avatar
Zrušiť
Best Answer

Hi,


If your automated action and cron job run successfully but no emails are generated, it usually means Odoo isn’t actually triggering the “Send Email” step. First, check your automated action in Settings → Technical → Automation and make sure the Action To Do field is set to Send Email. If it’s using Execute Python Code, ensure the code explicitly calls the email template with something like template.send_mail(record.id, force_send=True). Without this, no messages are created.


Next, review the email template under Settings → Technical → Email → Templates to confirm it’s active, linked to the correct model, and has a valid recipient address. You can test it manually with “Send Test Email.” If that works, check the Outgoing Emails list to verify that messages are being queued, and confirm that your Outgoing Mail Server configuration is valid and can send emails successfully.


Finally, verify that the user running the automation has permission to create and send emails, and that the domain in your rule actually returns records. If everything looks right but emails still don’t appear, try creating a simple test automation (for example, on contacts) to confirm that the mail system itself works. Once the rule is configured with a proper action, valid template, and an authorized execution user, Odoo will generate and send the scheduled emails as expected.


For outgoing mail server setup:-


* https://www.cybrosys.com/blog/how-to-configure-outgoing-and-incoming-mail-servers-in-odoo-18



Hope it helps

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
mar 19
3183
0
máj 19
3039
0
mar 15
4885