Cron Time Windows | Cron Scheduler | Cron Job Business Hours | Scheduled Actions at Fixed Times
by WebThreenity https://webthreenity.netlify.appWebThreenity · Odoo 17 · Free and open source
Cron Time Windows
Business hours and fixed times for every scheduled action.
Tell each scheduled action when it may run: every 5 minutes during office hours, every 30 minutes in the evening, never at night. Or run it at fixed times: every day at 07:30, every Monday at 09:00, on the 1st of the month.
Step by step
Captured on Odoo 19 Enterprise. Odoo 17 shows the same screens and steps, with its own look.
Why time windows?
Quiet nights
A queue that polls every 5 minutes all night fills the logs and wakes the server for nothing. Pause it outside business hours.
Right on time
A report at 07:30, a Monday digest, an export on the 1st: fixed times, not an interval that drifts a little more every day.
Opt-in, action by action
Every scheduled action stays on Odoo's native scheduling until you change it. The core actions are never touched.
Features
A frequency per time window
Each window runs the action at its own interval, in minutes or hours, or pauses it. Runs are aligned on the window start (08:00, 08:05, 08:10...), so the rhythm never drifts.
Fixed times
Daily, weekly or monthly times, as many as you need. An action set on the 31st runs on the last day of shorter months.
Weekdays and night shifts
Limit a window to some weekdays, or let it cross midnight: a Friday 22:00-06:00 window covers Friday night until Saturday morning.
Your timezone, daylight saving included
Windows follow the wall clock of the timezone you choose, across summer time changes. The next execution is still stored in UTC.
Preview before you save
The form lists the next executions as you edit, and explains what is wrong when two windows overlap or the action would never run.
Many scheduled actions at once
Save reusable templates, then select scheduled actions in the list and apply a template, the schedule of another action, or one you define on the spot.
How to use it
- Open Settings > Technical > Automation > Scheduled Actions (developer mode) and pick an action.
- In the Time Windows tab, choose Time windows or Fixed times, and the timezone.
- Add your windows (start, end, run or pause, interval, weekdays) or your fixed times.
- Check the Next executions preview, then save: the next execution date updates at once.
- For several actions, select them in the list and use Actions > Apply Time Windows.
Requirements
- Odoo 17.0, Community or Enterprise, on-premise or Odoo.sh.
- Depends on base only.
- Developer mode, to open the scheduled actions.
- English and French included.
Questions
Does it change Odoo's own scheduled actions?
No. Every scheduled action stays on Native until you choose Time windows or Fixed times for it: the mail queue, the autovacuum and the other core actions keep their usual schedule.
Does it add a dispatcher or a daemon?
No. The scheduled action itself keeps running; only its next execution date is computed differently, and the minute-level precision of the scheduler is kept.
What happens when the clocks change?
Windows follow the wall clock of the chosen timezone: 08:00 stays 08:00 in summer and in winter. The preview shows the UTC offset of each run.
A window from 22:00 to 06:00?
It crosses midnight and belongs to the day it starts on: a Friday 22:00-06:00 window runs from Friday night to Saturday morning.
Can I still run an action by hand?
Yes. Run Manually always runs, whatever the windows say.
Is it free?
Yes, under the LGPL-3 license.
Good to know
- A safety net skips a run that wakes up outside its window, or twice in the same slot, even when another module triggers the action.
- Restricted to administrators; every rule is checked on the server.
- Templates can be archived when you no longer use them.
Free trial · 7 days
Try Cron Time Windows in your own Odoo database
An Odoo 19 database of your own where the e-mail queue already runs in office hours: every 5 minutes in the day, every hour in the evening, every 30 minutes on weekend mornings. Open any scheduled action, give it time windows or fixed times, check the next executions before saving, and apply a template to several actions at once.
A database of your own · Access sent the same day · No credentials, no credit card
Get my access or the Live Preview button at the top of this pageMade by WebThreenity
Need more from Odoo?
WebThreenity implements, customizes and supports Odoo: ERP rollouts, custom modules, version upgrades and integrations. Questions about this app or a custom request? Write to us.
Email WebThreenity or visit webthreenity.netlify.app| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 1253 |
| Technical Name |
cron_time_windows |
| License | LGPL-3 |
| Website | https://webthreenity.netlify.app |
Please log in to comment on this module