Data Cleaning
Tidy a text field across every record at once - trim spaces, fix capitalisation, format phone numbers - with every value shown old against new before anything is written
Request a live demo · Odoo.sh or On-Premise only, not Odoo Online (SaaS).
0
records written while a run is only being worked out: the plan reads, Apply writes
7
actions: trim, collapse spaces, two capitalisations, upper, lower, phone format
9
automated tests in the app, none failing
5,000
contacts retitled in about 4 seconds in the test run, and put back in about the same
1
database transaction per run: if the database refuses one value, nothing is changed
Not
a merge: Put it back restores the replaced value and overwrites edits made after the run
Names typed with trailing spaces, customers entered in capitals and phone numbers in four layouts pile up in customer lists. Data Cleaning is a run you set up once: pick a model, one text field and one action, read the list of what would change, apply it, and put it back if you do not like the result. This page walks through it with screenshots of an Odoo 19 database holding a made-up trade-counter business, and with readings from a real run.
It rewrites stored data, so this page also says exactly what is changed, what is kept, and what Put it back does not undo.
Install it and a Data Cleaning entry appears in the Settings menu, for users in the Settings administrator group only. It needs only Odoo's base and phone number modules, which every database has.
How it works
What it changes, what it keeps, what it cannot undo
This is the part to read before pressing Apply. Each line was tested.
Four readings from the test run, rendered as a table. Generated from the probe's readings on made-up records, not a live screen.

1 Set up a run
Use it when you have a field that needs tidying across many records.Nothing written yet
A one-off script or a spreadsheet round trip changes data without a record of what was asked, by whom, or why.
Open Settings > Data Cleaning and create a run. Choose the model (Contact, here), one stored text field, an action, and optionally a filter, so a run can be limited to customers with one tag. The note is for whoever reads it in a year. The seven actions are: trim the spaces at the ends; collapse repeated spaces inside; Capitalise Every Word; capitalise the first letter only; UPPER CASE; lower case; format as an international phone number.
It does not run on a schedule, and it does not find or merge duplicate records. It rewrites one field per run.
A run in Draft. Nothing has been read or written.
The runs list: every run keeps its state, so an old tidy-up can be found and read.


2 Read the plan
Use it when you want to see every value before it changes.Read-only
A cleaning tool that says only "1,204 records updated" asks you to trust it.
Press Work out the change . The run counts Values to change , Already correct and Left alone , and lists each change old against new. Left alone means a value the action cannot read or an empty value; it is never counted as already correct, because nobody checked it. Open the records lists the records the run would change. Working out the plan writes nothing to the records.
The list shows the first 200 changes and then says how many more there are. Apply writes all of them, including the ones past line 200.
The plan does not freeze the records. If a matching record is created or changed after you worked out the plan, Apply writes it too (see Known limits).
A planned run: four supplier names with stray spaces, each shown as old -> new.

3 Apply, and put it back
Use it when the list on screen is what you want.Writes after preview
Once stored values are rewritten, the old ones are gone unless somebody kept them.
Apply asks for confirmation, stores the old value of every record it is about to change, and then writes the new values. The state becomes Applied. Put it back writes the stored old values back, record by record, and sets the state to Reverted. That works for upper and lower case too, where running the opposite action would not bring the original capitals back. Apply is refused if the run has already been applied, and if the model, field, action or filter was changed after the plan was worked out.
A run is one transaction. If the database refuses a value, for example two logins that become identical in lower case, the whole run fails and nothing is changed; the plan gives no early warning of that.
An applied run: eight customer names changed from capitals to normal capitalisation; four were already right and were not touched.
The confirmation before Put it back.
Changing the action on a planned run and pressing Apply: refused until the plan is worked out again.



4 Capitalisation, honestly
Use it when you want names in normal capitals.Writes after preview
Rules for capital letters have exceptions, and a bulk tool that applies one rule to everything makes new mistakes.
Capitalise Every Word uses plain Python title case, and there is no list of exceptions. It turns "mcallister's hardware" into "Mcallister'S Hardware", "3rd street bakery" into "3Rd Street Bakery", "NASA Ltd" into "Nasa Ltd" and "iPhone repair hut" into "Iphone Repair Hut". First letter only lower-cases everything after the first letter, so "NASA Ltd" becomes "Nasa ltd". UPPER CASE turns the German sharp s into SS. The plan shows each result before anything is written, which is what the preview is for: read it, narrow the filter, or leave those records out.
Trim and collapse change only spaces. The capitalisation actions do not remove spaces.
A planned run over six shops. The plan is where you spot 3Rd, Hvac and Iphone.
The three actions over ten names, as read back from a real run. Generated from the probe's readings.


5 Phone numbers
Use it when your phone numbers are in four different layouts.Writes after preview
A local number means nothing without a country, and a wrong guess is worse than leaving it alone.
The phone action reads each number against the record's own country, then the company's, and writes it in the international format of Odoo's phone module. In the test, "0161 496 0000", "(161) 496-0000", "+441614960000" and "020 7946 0000" on United Kingdom records became "+44 161 496 0000" and "+44 20 7946 0000"; "(415) 555-0132" on a United States record became "+1 415-555-0132"; a number already in that layout counted as already correct. Values it cannot read ("call reception", "12345") were left exactly as they are and counted as Left alone. With no country on the record and none on the company, every value was left alone, including numbers already in international form.
It does not guess a country. The fallback to a linked partner's country, for models without a country field of their own, is in the code but was not exercised in the test.
A phone run over ten contacts: five rewritten, one already correct, four left alone.

6 Translated fields
Use it when the field you are cleaning has several languages.Writes after preview
A translated field holds one value per language, and a bulk edit can silently touch only one of them.
On a translated field the plan says so in plain words: the run writes the version in the language you are working in, and the other languages keep what they have. In the test, a contact tag with an English and a French name was upper-cased in English only, and Put it back restored the English name. Only English and French were tried.
The plan for a translated field: the note names the language that will be written.

What it does not do
- These were measured in the test run or read from the code. None is fixed in this version.
Questions buyers ask
Does it change anything while I am looking at the plan?
No. Working out the plan reads the records and writes only the counts and the list on the run itself. Records change when you press Apply and confirm.
Can I undo a run?
Yes, with Put it back, which writes back the value each changed record had. It overwrites any edit made to those records after the run, and it does not undo what other apps did in reaction to the change.
Does it write records that were not on the list I read?
It can. Apply recalculates from the records as they are at that moment, so a matching record created after the plan was worked out is written too. The list shows the first 200 changes; Apply writes all of them.
Is Capitalise Every Word safe for company names?
Not without reading the plan. It uses one rule with no exceptions, so acronyms, Mc names and digits followed by letters change in ways you may not want.
What happens to phone numbers it cannot read?
They are left exactly as they are and counted as Left alone. Without a country on the record or the company, every number is left alone.
Who can use it?
Users in the Settings administrator group. An internal user without it was refused when creating a run.
Does it merge duplicate records or run on a schedule?
No to both. Each run rewrites one field, when you press the buttons.
Requirements
- Odoo 19.0 or 20.0. The App Store sells each version separately, so buy the one that matches your database.
- Odoo.sh or On-Premise only. Third-party apps cannot be installed on Odoo Online (SaaS) databases. Check your hosting before buying.
- Module
mh_data_cleaning, version 19.0.1.0.8, licensed OPL-1.