Skip to Content

Odoo Auto Archive - Automatically Archive Old Records After X Days

June 15, 2026 by
CODEerts

Automatically archive old records on any model after a number of days, with an optional filter, on a daily schedule.

Auto Archive turns Archive Anything into a hands-off cleanup tool. Once a model is archivable, you tell Auto Archive which date to watch and how old is too old, and a daily scheduled action keeps your lists, searches and reports focused on current records without anyone archiving by hand.

What it does

On the standard Models screen, next to the Archive Anything controls, Auto Archive adds a simple rule for each model: a date field, a number of days, and an optional record filter. Every day a scheduled action looks at each model that has Auto Archive switched on, finds the active records whose chosen date is older than the number of days you set and that match your filter, and archives them. A Preview button tells you exactly how many records currently match before anything runs, and the model keeps the time and count of the last run so you always know what happened.

Key features

  • Automatic, scheduled archiving of old records on any archivable model.
  • Pick the date field that defines age, such as Order Date, Invoice Date or Created On.
  • Optional filter built with Odoo's domain editor, for example only cancelled orders.
  • A daily scheduled action does the work and records the last run time and count.
  • A Preview button shows how many records would be archived before it runs.

How to set it up

1. Make the model archivable first with the free Archive Anything module. 2. On the same Models screen, tick Auto Archive. 3. Choose the date field, set Older Than (Days), and add a filter if you want. 4. Click Preview Auto Archive to see how many records match right now. 5. Leave it to the daily scheduled action, or adjust the schedule under Settings, Technical, Scheduled Actions.

Who it's for

Teams whose models fill up with old or cancelled records and who want them archived automatically on a schedule, with a clear preview and a filter, instead of cleaning up by hand.

Frequently asked questions

How do I automatically archive old records in Odoo?

Make the model archivable with Archive Anything, then on the same Models screen turn on Auto Archive, pick a date field and a number of days, and a daily scheduled action archives matching records automatically.

Can I auto archive only certain records, like cancelled orders?

Yes. Each model has a record filter built with Odoo's standard domain editor, so you can limit auto archiving to, for example, only cancelled sale orders or only a given status.

Which date is used to decide a record is old?

You choose the date field per model, such as Order Date, Invoice Date or Created On. Records whose chosen date is older than the number of days you set are archived.

Can I see what will be archived before it runs?

Yes. A Preview Auto Archive button shows how many records currently match your settings, so you can confirm the rule before the scheduled action runs.

How often does auto archiving run?

A daily scheduled action processes every model that has Auto Archive enabled. You can adjust the schedule from Settings, Technical, Scheduled Actions if needed.

Does it work in Odoo Community and Enterprise?

Yes, it runs on both Community and Enterprise. It depends only on the free Archive Anything module and core Odoo. Each Odoo Apps Store listing shows the exact version it supports.

Want this in your Odoo?

See the full feature list and screenshots, or talk to our certified Odoo team about setup and customization.

Odoo Archive Anything - Enable Archive and Unarchive on Any Model