| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 362 |
| Technical Name |
mjb_archive_rule |
| License | OPL-1 |
| Website | https://www.majorbird.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 362 |
| Technical Name |
mjb_archive_rule |
| License | OPL-1 |
| Website | https://www.majorbird.com |
Auto-Archive Engine
A configurable, no-code rule engine that automatically archives records on a schedule â on any Odoo model, with domain filters and per-company scope, without writing a single line of Python.
$49 â One-time purchase Odoo 19.0â ï¸ The Problem
Odoo accumulates stale records over time â expired leads, outdated tasks,
obsolete products. Cleaning them up requires either manual effort or a
custom ir.cron job written by a developer. For functional
consultants and business users there is no built-in way to schedule
automatic archiving from the UI. Every cleanup rule means a ticket, a
developer, and code that must be maintained through every Odoo upgrade.
What the Engine Does
| Feature | Description |
|---|---|
| Target any model | Select any installed Odoo model as the archiving target â CRM leads, sale orders, products, tasks, partners, and more. |
| Domain filter | Use a standard Odoo domain to define exactly which records are archived â e.g. leads older than 90 days with stage = Lost. |
| Configurable schedule |
Set the cron frequency â hourly, daily, weekly, monthly â directly
from the rule form. The engine manages the ir.cron
record automatically.
|
| Company scope | Scope each rule to a specific company or apply it globally across all companies in a multi-company environment. |
| Enable / disable toggle | Pause and reactivate rules at any time without losing configuration. The underlying cron job is cleanly deactivated, not deleted. |
| Satellite-ready | Designed as an engine module. Companion satellite modules can ship pre-configured archive rules for specific business objects. |
Key Features
No-Code Configuration
Create and manage archiving rules entirely from the Odoo Settings menu. No developer required â no Python, no cron editing.
Flexible Scheduling
Choose from hourly, daily, weekly, or monthly intervals. The engine
creates and manages the ir.cron entry automatically.
Precise Domain Filtering
Use any valid Odoo domain expression to target only the records that should be archived â based on date, state, field value, or any combination.
Multi-Company Aware
Assign each rule to a specific company or leave it global. Rules stay isolated across entities in a multi-company deployment.
Reversible by Design
Archiving is not deletion â records can be unarchived at any time. The engine never permanently destroys data.
Clean Lifecycle
Deleting a rule removes its cron job automatically. No orphaned scheduler entries left behind in the system.
Getting Started
Go to Settings â Technical â Archive Rules
After installation, the Archive Rules menu is accessible to users with the Archive Rule Manager group.
Click New â select the target model
Choose any installed model from the dropdown (e.g.
crm.lead, sale.order,
product.template). Give the rule a descriptive name.
Set the domain filter and schedule
Enter an Odoo domain expression to define which records are affected. Then select the cron frequency â daily is the most common choice for archiving rules.
Toggle Enable â the rule is live
Flip the Enabled switch. The engine creates an
ir.cron entry and the rule begins running on schedule.
Disable at any time to pause without losing your configuration.
Scope & Limitations
This module does NOT:
- Permanently delete records â use the Auto-Delete Engine for hard deletion
- Provide a preview / dry-run of which records will be archived before the cron runs
- Archive records in real-time on record save â rules run on a schedule only
- Support models that do not implement the standard
activefield - Send notifications or logs when records are archived
Version 19.0.1.0.0 â First Stable Release
This is the first stable release of the Auto-Archive Engine on Odoo 19. All core features are fully tested and functional. If you encounter any issue or have a feature request, we welcome your feedback via the Odoo Apps support system. Your input shapes the next version.
by Majorbird — Odoo Silver Partner
About Majorbird
Odoo Silver Partner â Manufacturing, Inventory & Accounting Automation
Offices in Vietnam, China, Mexico, and the Middle East.
www.majorbird.comOdoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module