Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Administration
  3. Test Data Cleanup: Remove Demo and Test Transactions Before Go-Live v 20.0
  4. Sales Conditions FAQ

Test Data Cleanup: Remove Demo and Test Transactions Before Go-Live

by Viyug Infotech https://viyuginfotech.com
Odoo
v 20.0 Third Party 43
Download for v 20.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
Test Data Cleanup

Remove test data before go-live, keep what is real

Choose the apps, the companies, the dates, the journals and the warehouses. See exactly what goes in a dry run, decide what happens to the records that stay, then confirm with the database name. Every run is logged.

Dry run firstScopedProduction lockRun log

22
transaction areas
8
kinds of unused master data
4
scope limits

Three steps, no surprises

Nothing is removed until a preview exists and still matches the data.

1

Pick and scope

Tick the areas of the installed apps. Limit them to companies, a date range, journals or warehouses, and add keep or only filters per document type.

2

Dry run

The preview lists every document type in removal order with exact counts, the lines and records removed with them, chatter, attachments, and the records that stay but point to them.

3

Confirm and log

Type the database name, confirm your backup and run. The run keeps who, when, what, how many, what was left and how long it took, and prints as a PDF.

What you get

๐Ÿงน

Only the apps you have

Areas appear only when their app is installed: sales, purchases, invoices and payments, inventory, manufacturing, point of sale, CRM, projects and timesheets, website orders, expenses, time off, attendances, recruitment, repairs, maintenance, fleet, events, surveys, mailing traces, lunch, loyalty cards and calendar. One click ticks them all.

๐ŸŽฏ

Scoped, never global

Clean one company of a multi-company database, documents up to the go-live date, one journal or one warehouse. Document types that cannot be narrowed by a limit are skipped and listed, so nothing outside the scope is touched.

๐Ÿ”

Keep and only filters

Per document type, keep what matches a filter (for example orders with a Keep tag) or remove only what matches it. "Only unconfirmed documents" keeps every confirmed, posted or done document.

๐Ÿ“Š

Exact dry run

Counts per model in the order they will be removed, with the lines, moves and reconciliations that go with them, messages, followers, activities, attachments with their size, and a button to open the records. Dry runs are logged too.

๐Ÿ”—

References from records that stay

Every installed model is scanned, custom and third-party ones included. Links the database clears are listed; links that would block are shown in red and you decide: block the run, clear the link or remove those records too.

๐Ÿ“ฆ

Master data stays

Products, contacts, accounts and the rest stay by default. Tick a kind to remove only records nothing else uses after the cleanup. Records installed by apps and the contacts of companies and users are always kept.

๐Ÿ“‹

Posted, done and locked documents

Posted entries, done transfers and done manufacturing orders are removed through the ORM without cancelling anything else. Entries inside a lock date or a secured sequence need an explicit option.

๐Ÿ“ˆ

Stock that adds up

When stock moves go, stock on hand and reservations are recalculated from the moves that stay, for the products and locations concerned.

๐Ÿ”ข

Numbering reset

Only the numbering of the cleaned documents is listed, per company and per period, with the current number, the documents left and the number to restart at.

๐Ÿ”’

Production lock

Mark a database as production in Settings and every run is refused. One run can be unlocked with the database name and a reason, for a limited time, and it locks again after the run.

๐Ÿ‘ฅ

Second administrator

Optionally, runs that remove accounting data wait for another administrator. Areas can be restricted to some groups.

๐Ÿ’พ

All or nothing

Any error rolls the whole run back, or choose to keep going per area: a failing area is rolled back and reported while the others are cleaned.

๐Ÿ“„

Run log and PDF

Who prepared, previewed, approved and ran it, the scope and options, planned, removed and left per model with links to what is left, numbering reset, duration and errors.

๐Ÿ”

Reusable profiles

Save a scope as a profile, export it as JSON, rehearse on a staging copy, import it on the go-live database and run the same cleanup.

๐Ÿ—‘

No orphans left behind

Messages, followers, activities, attachments and XML ids of removed records go with them; an optional switch also clears chatter on the documents that stay.

Moving real data in after the cleanup?

Once the test data is gone, bring your real masters and opening balances over from Tally.

Tally Migration Wizard icon
Tally Migration Wizard Paid app

Import Tally XML masters and Trial Balance files: ledgers, groups and opening balances, with file detection, staging and review before anything is created.

View Tally Migration Wizard

Areas

Each area appears only when its app is installed.

AreaWhat is removedNeeds
Point of SaleOrders, payments, sessions (a session only when all its orders go)Point of Sale
Website orders and visitorsOrders placed on a website, website visitorsWebsite
SalesQuotations and sales orders with their linesSales
PurchasesRequests for quotation, purchase orders, purchase agreementsPurchase
RepairsRepair orders with their parts movesRepairs
ManufacturingManufacturing orders, work orders, time logs, unbuild orders, their stock movesManufacturing
InventoryTransfers, moves, move lines, scraps, batches, landed costsInventory
Invoices, payments and journal entriesInvoices, bills, payments, entries, bank statements, reconciliations, analytic linesInvoicing
ExpensesEmployee expensesExpenses
Project tasks and timesheetsTasks, project updates, timesheets (projects stay)Project
CRMLeads and opportunitiesCRM
Time off, attendances, recruitmentTime off and allocations, check-ins, applicantsHR apps
Maintenance and fleetMaintenance requests; vehicle services, contracts, odometer, driver historyMaintenance, Fleet
Events and surveysRegistrations; participations and answersEvents, Surveys
Mailing traces and SMSDelivery traces of email marketing, queued text messagesEmail Marketing
Lunch, loyalty, calendarLunch orders and cash moves; coupons, loyalty and gift cards; meetingsLunch, Loyalty, Calendar
Unused master dataProducts, product attributes, contacts, lots and serial numbers, packages, bills of materials, accounts, taxesas installed

See it working

A rehearsal on a demo database before go-live.

1

Cleanup runs

Every run stays as a log: areas, companies, dates, records planned, removed and left, who ran it and when.

Cleanup runs
2

Areas and scope

After the dry run the run shows how many records go, in how many document types, the attachment size and the blocking references.

Areas and scope
3

Limits and filters

Limit to journals or warehouses and add keep or only filters with the standard domain editor.

Limits and filters
4

Dry run in removal order

Lines before orders, moves before transfers: the order the records will be removed in, with their messages and attachments.

Dry run in removal order
5

References from records that stay

A sales order line that stays still uses a gift card in the cleanup: the run is blocked until you decide.

References from records that stay
6

Decide and preview again

Here the line is removed too. The other links are cleared by the database and listed for information.

Decide and preview again
7

Numbering

Current number, documents left and the number to restart at, per sequence. A reset is proposed only when nothing of that numbering is left.

Numbering
8

Typed confirmation

The database name and a backup check are required, and the dialog repeats what will go.

Typed confirmation
9

Result of a run

Removed and left per document type, duration, and the run written to the chatter.

Result of a run
10

Production lock

On a database marked as production, every run is refused until it is unlocked.

Production lock
11

One-run unlock

The unlock needs the database name and a reason, is logged and expires.

One-run unlock
12

Second administrator

A run that removes accounting data waits for another administrator.

Second administrator
13

Profiles

Reusable cleanups, with JSON export and import to replay a rehearsal on the go-live database.

Profiles
14

Settings

Production lock, unlock duration and approval, with shortcuts to areas and profiles.

Settings
15

Areas

Installed apps only; rename, reorder or restrict an area to some groups.

Areas
16

Printable summary

The run as a PDF for the go-live file.

Printable summary

Configuration reference

SettingWhereEffect
This is a production databaseSettings โ€บ Test Data CleanupEvery run is refused until it is unlocked for one run with the database name and a reason.
Unlock lasts (minutes)Settings โ€บ Test Data CleanupHow long a production unlock stays valid (30 by default).
Second administrator approves accounting cleanupsSettings โ€บ Test Data CleanupRuns with invoices, payments, entries, accounts or taxes wait for another administrator.
Allowed groupsData Cleanup โ€บ Configuration โ€บ AreasRestrict an area to some groups.
If an area failsRun โ€บ OptionsAll or nothing, or keep going per area.
Allow entries inside lock datesRun โ€บ OptionsOff by default: entries before a lock date or in a secured sequence stop the run.
Offer numbering resetRun โ€บ OptionsLists the numbering of cleaned documents with a proposed next number.
Refresh category and location namesRun โ€บ OptionsRecomputes the full names of product categories and stock locations after the run.
Clear chatter on kept documentsRun โ€บ OptionsAlso removes messages and activities of the documents that stay, in the same companies and dates.

Access and data

Who can use it

Settings administrators who are also in the Data Cleanup Manager group. Both are checked on the server for every action, not only in the menu.

What is never removed

Users, groups, companies, currencies, countries, languages and technical records, records installed by apps, and the contacts of companies and users.

How records are removed

Through the ORM, child records first, so the rules of every installed module apply and nothing points to a removed record afterwards.

What is checked before a run

The scope must not have changed since the preview and the data must still match it; otherwise the run asks for a new preview.

Questions

Can I undo a cleanup?

No. Take a backup first; the run reminds you and asks you to confirm it. A dry run never changes anything, so preview as often as you like.

Does it work with several companies?

Yes. Pick the companies to clean; the others are not touched. Document types without a company (for example calendar meetings) are only cleaned when every company is selected.

What about posted invoices and done transfers?

They are removed with their lines, reconciliations and moves. Reconciliations with entries that stay are undone and those entries become open again; the preview warns you. Entries before a lock date need the matching option.

Is stock on hand still right afterwards?

Yes. For every product and location touched by removed moves, stock on hand and reservations are rebuilt from the moves that stay.

Will invoice numbers restart?

Journal entries and payments restart from the last entry left in each journal by themselves. Other numbering (orders, transfers, manufacturing orders) can be reset from the Numbering tab.

Does it handle custom modules?

Records of custom and third-party models that point to removed records are found by the reference scan and shown with a decision. Records they own are removed with them.

Why is a demo product not removed?

Records installed by an app, demo data included, are kept. Archive them, or remove them by hand once the cleanup is done.

Can a large database time out?

A run is one database transaction: if the web worker times out, nothing is removed. Narrow the scope (dates, companies, areas) and run in steps, or raise the server time limit for the rehearsal.

Go further with paid Viyug apps

This app stays free. These paid apps from the same team work next to it:

Cloud Backup

Automatic database backup to S3, Google Drive, Dropbox, SFTP or a NAS.

Open on the Odoo store รขย†ย—

Master Data Governance

Change approval, validation rules and duplicate check for contacts and products.

Open on the Odoo store รขย†ย—

Need help or a change?

An app you would like covered as an area, or a question about your go-live? Use the Contact Vendor button on this page. Viyug Infotech will get back to you.

Email support: support@viyuginfotech.com
Website: viyuginfotech.com

Scan with your phone to chat on WhatsApp or write us an email:

WhatsApp QR code for Viyug Infotech support

WhatsApp

+91 83207 42187

Email QR code for Viyug Infotech support

Email

Send us an email

Release notes

Initial release

  • Areas for 22 kinds of transactions, shown only when their app is installed
  • Scope by company, date range, journal and warehouse, keep and only filters
  • Dry run with counts in removal order, references from kept records, numbering reset
  • Unused master data removal with protected records
  • Typed confirmation, production lock, second administrator approval, run log and PDF
  • Profiles with JSON export and import
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2748
Technical Name test_data_cleanup
LicenseLGPL-3
Websitehttps://viyuginfotech.com

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal โ€ข Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with