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. Productivity
  3. Smart Import Undo v 20.0
  4. Sales Conditions FAQ

Smart Import Undo

by Awins
Odoo

$ 120.53

v 20.0 Third Party
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
  • License
Apps / Awins / import_batch_undo

Smart Import Undo

Every file you import with the standard Import screen is saved as a batch you can undo, with test-run errors kept per row and column mappings you can save and re-use.

Install›Configure›Use
/odoo/action-import_batch_undo.import_batch_action/3 · IMP/00003, partly undone
Smart Import Undo in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withImport (base_import) and Mail (Discuss)
LicenceOPL-1, 110 EUR
Tests14 automated, run on every version
Moduleimport_batch_undo

The situation

A supplier file with 800 rows goes into Contacts and the Phone column was mapped to Mobile. Odoo has no way back: you export the new contacts, delete them by hand, or restore a backup. If the same file also updated 300 existing contacts, the old values are gone and nobody remembers which records were touched.

The module logs each real import as a batch under Import History. It keeps the ids of the created records and the old values of the updated ones. One click on Undo Import deletes what was created and writes the old values back, and it reports every record it skipped and why.

What it adds

Import History
One batch per import
Every import made with the standard Import button, on any model, creates a batch IMP/00001 with the model, file name, user, date, company and the counts of created and updated records. The Records tab lists each record with its name and status. A file that Odoo imports in several chunks ends up in one batch.
Without it: nothing is kept once the import screen closes.
Undo Import
Delete created, restore updated
Undo Import deletes the records the import created and restores the records it updated to the values they had before, for the fields the file wrote. Updated records are those matched by an External ID or Database ID column, which is how standard Odoo updates existing records. The batch moves to Undone.
Skipped
Safety checks before deleting
A record written by anyone after the import is skipped, and so is a created record that another record still points to, through a many2one or many2many field (for example a tag now used by other contacts). Each skip is listed with its reason in the Records tab and in the Undo Log. The batch shows Partly undone and you can run Undo Import again later.
Force Undo
Managers can override
Import Batch Managers get Force Undo, which ignores later changes and links. Records that Odoo or the database still refuses to delete (a posted invoice, a restricted link) are marked Failed with the error text, and the others are processed.
Without it: a failed delete of one record stops the whole manual cleanup.
Test run
Test import errors kept
The standard Test button already checks the file without writing. The module saves its result as a test run in the history: row number, error or warning, field and message, for example Row 2 country_id: No matching record found for name 'Atlantis'. A new test of the same screen replaces the earlier one.
Mapping Templates
Save and re-apply column mappings
Save Mapping as Template on a batch stores its column to field pairs. Apply to Import Screen writes them into the mapping memory the standard Import screen already uses, so the next file with the same headers opens pre-mapped. Templates can be edited, archived and shared with colleagues.
Import Batch Manager
Own batches, company rules
Users see and undo their own batches. Managers see all batches, can undo any, and can delete batches. Batches and templates follow the multi-company rules: a batch of company A is hidden while only company B is active.

Getting started

Install

Open Apps, clear the Apps filter, search for Smart Import Undo and click Activate. It needs the standard Import module (base_import) and Mail, which every database has. There is nothing to set up: imports made after the install are logged. Add managers to Import History › Manager under Settings › Users.

Apps › import_batch_undo › Activate
Configure

Optional. Open Import History › Mapping Templates, or open a batch and click Save Mapping as Template. Edit the File Column and Field Path pairs, then click Apply to Import Screen. The next import of that model with matching column headers pre-selects those fields.

Import History › Mapping Templates Settings for Smart Import Undo
Use

Import as usual: open the list, click the cog menu, Import, upload the file, Test, then Import. Open Import History to see the batch. If the result is wrong, open the batch and click Undo Import. Read the Records and Undo Log tabs to see what was skipped.

Import History: four batches, one undone, one partly undone because a record was edited after the import, and the 3 contacts imported through the real Import screen.
Import History: four batches, one undone, one partly undone because a record was edited after the import, and the 3 contacts imported through the real Import screen.
A test run of customers_march.csv: rows 2 and 4 name countries that do not exist, so nothing was imported.
A test run of customers_march.csv: rows 2 and 4 name countries that do not exist, so nothing was imported.

Fine print

Which imports does it record?
Imports done with the standard Import screen of any model that shows the Import entry in its cog menu. Imports done by code, scheduled actions or other import apps that do not use the standard screen are not recorded.
Does it update existing records by a key column?
It does what standard Odoo does: a file with an External ID column or a Database ID column (.id) updates the matching records. There is no extra match-by-field option. The old values of updated records are saved, so the update can be undone.
What does Undo not bring back?
It restores field values and deletes created records. Emails sent, stock moves or accounting entries produced by the records are not reversed, and a record Odoo refuses to delete is reported as Failed.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
Only imports made after the module is installed are logged. Undo restores the fields the file wrote; one2many and binary fields (images, attachments) are not restored, and side effects such as emails or generated documents are not reversed. A record written by anyone after the import is skipped unless a manager uses Force Undo, and records that Odoo will not delete (for example posted invoices) are reported as Failed. There is no match-existing-records-by-key option beyond External ID and Database ID, and mapping templates are written into the global mapping memory of the Import screen, so applying one changes it for every user of that model and header. The file itself is not stored.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

20.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

Can I undo an import that touched a model with custom fields?

Yes for stored fields of any model that uses the standard Import screen; tell us the model if it has special delete rules.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

Auto Print Reports Auto Print Reports report_auto_print_rules
Recurring Purchase Orders Recurring Purchase Orders purchase_order_recurring_schedule
Payment Method Surcharge Payment Method Surcharge payment_method_surcharge
Awins builds small Odoo modules that do one job. import_batch_undo · 20.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 889
Technical Name import_batch_undo
LicenseOPL-1
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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 or have a question related to your purchase, please use the support page.
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