Data Recycle - Odoo 20 Community Book

PART 9: DATA MANAGEMENT

The last part of the book is about housekeeping. Data Recycle finds old records and duplicates, and cleans them, so that the database stays small and tidy.

The Data Recycle app finds old records and tells you about them, so that you can archive or delete the ones that nobody needs now. A company that works for years collects old meetings, old drafts and old logs. The app lets you write a rule once, for example "meetings that started more than three months ago", and then checks every night for the records that match.

In this chapter we make one rule for the calendar. We let the app find two old meetings, keep one and archive the other. You will see the rule form, the list of suggestions, the two modes (manual and automatic), the night job, and who can use the app.

Words used in this chapter:

Rule. A saved order for the app: which model to look at, how old a record must be, and what to do with it.

Recycle record (suggestion). One old record that matches a rule and waits for your decision.

Archive. Hides a record from the lists. The record is kept, and you can bring it back.

Delete. Removes a record for good.

Manual mode. The app only makes suggestions. You decide, record by record.

Automatic mode. The app does the action by itself, with no question.

Edition note. The Data Recycle app (module data_recycle) is part of Odoo 20 Community, and it needs the Discuss app (module mail). The Enterprise edition adds the module data_cleaning on top of it (section 6).

Opening the App

Click the Data Cleaning icon. The menu bar has two entries: Recycle Records (the suggestions) and Configuration, which holds one menu, Rules > Recycle Records. The first screen is the list of the suggestions. In a new database it is empty, with the message No cleaning suggestions and the line Configure rules to identify records to clean.

odoo Development odoo Development

The title of the first screen is Field Recycle Records, and the title of the rules list has a spelling mistake, Recyle Records Rules. They are Odoo's own words, so we write them as they are.

WhatsApp