| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 736 |
| Technical Name |
dg_smart_import |
| License | OPL-1 |
| Website | https://redbridgeerp.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 736 |
| Technical Name |
dg_smart_import |
| License | OPL-1 |
| Website | https://redbridgeerp.com |
DG Smart Import
Import CSV & Excel files into any Odoo model — with visual field mapping, data preview, and per-row error isolation.
Odoo 18 CSV & Excel Any Model No Coding OPL-1One tool. Every model.
Most import modules are hardcoded to a single model (Contacts, Products…). DG Smart Import works generically across your entire Odoo database — enable it on any model in seconds.
CSV & Excel
Upload .csv or .xlsx files. CSV delimiter auto-detected (comma, semicolon, tab). Excel blank rows skipped automatically.
Visual Field Mapping
Drag-and-drop style column picker. See the field's technical name, label, and type side-by-side with a sample value from your file.
10-Row Preview
Inspect the first 10 rows of mapped data before committing. Catch mapping mistakes without touching the database.
Per-Row Isolation
Each row runs inside its own database savepoint. One bad row never blocks the rest — successful rows are always saved.
Required Field Guard
Before you reach the preview step, the wizard checks for required fields with no default. No more cryptic DB errors at import time.
Detailed Error Log
Full import summary: success count, failure count, and a per-row error message so you know exactly what to fix in your file.
How it works
Four guided steps from file upload to imported records.
Upload your file
Open Smart Import from the action menu of any list or form view. Upload your CSV or Excel file. On the right you immediately see all importable fields for that model — labels, technical names, and types — so you know how to structure your file.
Map columns to fields
After parsing, each file column appears as a row in the mapping table along with a sample value. Use the dropdown to pick the matching model field. Skip any column by leaving it blank. The wizard warns you if a required field is not mapped.
Preview your data
See the first 10 rows rendered in a table with your chosen column-to-field mapping applied. Verify the values look correct before committing anything to the database.
Import & review
Click Import Now. Each row runs in its own savepoint. The results page shows how many records were created and a full per-row error log for any failures — no silent data loss.
💡 Tip: The Smart Import action is injected automatically into the list and form views of any model you enable — no XML customisation required.
Supported field types
Automatic type conversion with sensible fallbacks and helpful error messages.
| Field Type | Conversion Logic | Example input |
|---|---|---|
| Char / Text / Html | Used as-is | Hello World |
| Integer | Float-safe parse (handles comma decimals) | 42 or 42.0 |
| Float / Monetary | Comma-or-dot decimal separator | 1,250.50 or 1250,50 |
| Boolean | true / 1 / yes / oui / x → True | true, 1, yes |
| Date | Auto-detects 5 common formats | 2025-12-31 or 31/12/2025 |
| Datetime | Auto-detects ISO and locale formats | 2025-12-31 14:30:00 |
| Many2one | Exact name match, then case-insensitive fallback | Saudi Arabia |
| Selection | Matches by key or by translated label | done or Done |
Security & Access Control
Smart Import Manager group
A dedicated security group controls who can access the configuration screen and run import wizards. Standard Odoo users see nothing.
Action menu restriction
The Smart Import action in list and form views is only visible to members of the Smart Import Manager group — enforced at the server action level.
ORM-only operations
All database operations go through the Odoo ORM. No raw SQL. Access rules, record rules, and field-level security all apply normally.
Savepoint isolation
Each imported row uses a PostgreSQL savepoint. A constraint violation on row 5 does not roll back rows 1–4. Partial imports always succeed partially.
Technical Specifications
Requirements
- Odoo Community or Enterprise 18.0
- Depends on
baseonly — no extra modules needed openpyxlfor Excel imports (ships with Odoo 18)
Models
dg.smart.import.config— per-model on/off toggledg.smart.import.wizard— TransientModel wizarddg.smart.import.mapping.line— column mapping rows
Limitations
- One2many / Many2many fields not supported
- No update-existing-records mode (v1)
- No mapping template save/load (v1)
- No background/async import for very large files
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