This module allows you to disable cron Jobs during periods. It can be usefull if you want to disable your cron jobs during maintenance period, or for other reasons.
Note
If you have installed cron_run_manually module, it is still possible to run your job, during inactivity periods.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Lets you define daily time windows during which a scheduled action (cron job) is skipped, so jobs do not run during maintenance or other blocked hours.
This module adds the ability to pause scheduled actions during chosen hours of the day.
On each scheduled action (the technical screen for ir.cron), a new "Inactivity Periods" tab appears. There you can add one or more periods. Each period has a type (currently only "Hour"), a begin hour and an end hour, entered with a time widget.
When a scheduled action is about to run, the module checks its inactivity periods. If the current time falls inside one of them, the job is skipped and a message is written to the log; otherwise it runs normally.
Business rules and checks: - The end hour must be greater than the begin hour, otherwise an error is raised when saving. - Only the "Hour" type is implemented; any other type raises an "Unimplemented Feature" error. - Periods are linked to the job and are deleted automatically if the job is deleted.
Access: all internal users can read inactivity periods; only system administrators can create, change or delete them.
It touches the scheduled actions model ir.cron and adds a new model ir.cron.inactivity.period.
Depends on
Models and fields (2)
- ir.cron · extends an existing modelinactivity_period_ids (Inactivity Periods)
- ir.cron.inactivity.period · new modeltype (Type), cron_id, inactivity_hour_end (End Hour), inactivity_hour_begin (Begin Hour)
Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/server-tools.
terminal Installation and usage
OCA documentation · Odoo 12.0Configuration
Source · Odoo 12.0To configure this module, you need to:
- Go to Settings > Technical > Automation > Scheduled Actions and select a cron
- Add new option inactivity periods
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.