diff --git a/om_data_remove/README.rst b/om_data_remove/README.rst index 24fbdbd35..d6f5e132f 100644 --- a/om_data_remove/README.rst +++ b/om_data_remove/README.rst @@ -2,9 +2,10 @@ Odoo 20 Remove Data =================== -This module adds a Data Cleaning screen that clears every transaction of an Odoo 20 Community database -in one go, and reports what is left in each table of the database. It is meant for a test database or -for a fresh database before going live: the deletion cannot be undone. +This module adds a Data Cleaning screen that clears every transaction of an Odoo 20 database, Community +or Enterprise, in one go, and reports what is left in each table of the database. Set Odoo up and test it +in the database you go live with, clear the test transactions, keep the master data and the configuration, +and uninstall the module before the first real transaction: the deletion cannot be undone. Features ======== @@ -77,13 +78,16 @@ the report refuse anyone else. Usage ===== -Take a backup of the database first: nothing here can be undone, and the only way back is to restore -that backup. Do not install this module on a production database. +Nothing here can be undone. Use it before going live only, while the database holds test data, and +uninstall the module before the first real transaction, so that the live data cannot be cleared later. +The transactions of every company of the database are cleared. Go to Settings > Data Cleaning, check what will be deleted, click Clear All Transactions, type DELETE in the confirmation and click Clear All Transactions. The report of the database tables opens once the transactions are deleted. Database Tables shows the same report without deleting anything. Click Delete Rows on a table of the report to empty it as well. +The documents of custom, third-party and Enterprise-only apps are not in the standard list: the report +shows their tables with their row count, and Delete Rows empties them. Then uninstall Remove Data from Apps. Credits ======= diff --git a/om_data_remove/static/description/banner.gif b/om_data_remove/static/description/banner.gif index ae82ff6b2..d7a354d0d 100644 Binary files a/om_data_remove/static/description/banner.gif and b/om_data_remove/static/description/banner.gif differ diff --git a/om_data_remove/static/description/icon.png b/om_data_remove/static/description/icon.png index ab723bde0..3f814edd1 100644 Binary files a/om_data_remove/static/description/icon.png and b/om_data_remove/static/description/icon.png differ diff --git a/om_data_remove/static/description/index.html b/om_data_remove/static/description/index.html index 6aac0afd1..cfd393fd9 100644 --- a/om_data_remove/static/description/index.html +++ b/om_data_remove/static/description/index.html @@ -1,170 +1,325 @@ -
- One button clears every transaction of a test database — invoices, orders, stock moves, time off, leads, tasks and the rest — and keeps the master data. Then a report shows what is left in each data table, the fullest first, and empties any of them you choose.
-- Only the applications installed on the database are touched. Their documents go with the followers, attachments and XML ids attached to them, every message and activity of the database goes, and the numbering of the documents starts again from 1.
-- Settings > Data Cleaning lists, application by application, the documents that would be deleted and how many records each holds. One button clears them all.
-
A demo database with 19 applications: 7,648 records, 5,158 of them messages and activities.
-- The confirmation repeats how many records will go and names every kind of document, and does nothing until the word DELETE has been typed.
-
The last step before the transactions are deleted.
-- Once the transactions are deleted, a report lists the data tables of the database with their exact number of rows, the fullest first, and says for each whether it held transactions, records attached to documents, kept records or relation data. Database Tables shows the same report at any time, without deleting anything.
-
After the clearing: 9,721 rows deleted, 52 sequences reset, no transaction row left.
-
Every table with rows, the fullest first.
-- After the clearing, the report may show a table you want empty as well: demo products, tags, contacts. Delete Rows on its line — or on several tables selected in the full list — asks for DELETE, empties them with their followers, attachments and XML ids, and shows the report again.
-
Emptying the contact tags left after the clearing.
-
The tags and their XML ids are gone, and the report is drawn again.
-
- Can I undo it?
- No. Restore the backup you took before.
- Is it done in one go?
- Yes, in a single transaction: if anything fails, nothing is deleted. A table the database refuses to empty is skipped and reported, and the rest is cleared.
- Does it respect the rules of the models?
- No. It deletes with SQL, bypassing the ORM on purpose, so no delete rule, constraint or override applies. That is what lets it empty a database, and why it belongs on a test database only.
- What about apps I do not use?
- Their documents are not there, so nothing happens for them.
Set Odoo up and test it in the database you go live with, then clear every test transaction in one click. Master data and configuration stay.
+Configure once, in the database you go live with: clear the test data, uninstall the module, go live.
+Only the apps installed on the database are touched. Their documents go with their followers, attachments and XML ids, and their numbering starts again from 1.
+See what goes before it goes, confirm it, and check what is left.
+Settings > Data Cleaning lists, app by app, the documents that would be deleted and how many records each holds.
+
+
+
+
+Your own, third-party and Enterprise-only apps have their own documents. After the clearing they are still in the report with their row count: Delete Rows empties them, with their followers, attachments and XML ids.
+
+
+/opt/odoo/custom-addons, and add that folder to addons_path in odoo.conf.Remove Data is free and open source under LGPL-3, for Odoo 20.
+Your rating helps others find it; your requests and pull requests decide what comes next.
+★ Rate us on Odoo Apps +💡 Request a feature +🐛 Report an issue +★ Star us on GitHub +
+