Bank Statement CSV Column Auto-Detection
Upload a sample, let the heuristic engine map your bank's CSV columns, save a reusable template, and import to bank statement lines â for any bank, worldwide.
Stop hand-mapping CSV columns for every bank
Every bank exports its statement CSV differently: comma or semicolon delimiters, dot or comma decimals, ISO or day-first or month-first dates, a single signed amount column or separate debit / credit columns, headers in any language. This module reads a short sample of a real export and proposes a complete column mapping automatically using a transparent heuristic engine â then lets you save that mapping as a reusable template so every future file from that bank imports in one click.
Dialect sniffing
- Field delimiter detection â comma, semicolon, tab or pipe â by field-count consistency scoring.
- Header-row detection: knows when row one is labels versus already data.
- Decimal / thousands separator inference: tells
1.234,56(continental) from1,234.56(US/UK). - Quote-character detection for fields with embedded delimiters.
Date-format inference
- Recognises ISO, day-first, month-first, dotted, slashed, dashed and named-month layouts.
- Disambiguates DD/MM from MM/DD by finding a value whose first part exceeds 12 (which can only be a day).
- Picks the single
strptimepattern that parses the most sample rows, then re-parses every row deterministically.
Column-role detection
- Scores every column for date, amount, debit, credit, balance, description, reference, currency and payee roles.
- Blends content evidence (numeric / date / sign / cardinality ratios) with multilingual header keywords â English plus common German, French, Spanish, Italian, Dutch and Portuguese bank-export labels.
- Works even on header-less files, using the data shape alone.
- Chooses automatically between a single signed-amount layout and a split debit / credit layout.
Reusable templates & import
- Save any detected mapping as a named, per-bank template.
- Review and override the proposed role of each column before saving â every heuristic ratio is shown for full transparency.
- Import a full bank CSV using a template straight into account.bank.statement.line records, ready for reconciliation.
- Confidence score per role and overall, so you know when to trust the proposal and when to check.
What gets detected
| Aspect | Detected values |
|---|---|
| Field delimiter | Comma, semicolon, tab, pipe |
| Header row | Present / absent |
| Number format | Dot-decimal vs comma-decimal, with grouping |
| Date format | ISO, DD/MM, MM/DD, dotted, named-month, 2- or 4-digit year |
| Amount layout | Single signed column or split debit / credit |
| Column roles | Date, amount, debit, credit, balance, description, reference, currency, payee |
How it works
- Upload a sample â a handful of rows of your bank's CSV export.
- Detect columns â the engine proposes the dialect, formats and a role for every column, with a confidence percentage.
- Review â adjust any role inline if you disagree; the numeric, date and distinct ratios behind each guess are shown.
- Save as template â give the mapping a name tied to that bank.
- Import â feed full statement files through the template and the rows land as bank statement lines on the journal you pick.
The detection engine is pure, deterministic Python â no external service is contacted and no data leaves your database. "AI" here means a transparent heuristic scoring model you can inspect, not a black box.
Technical notes
- Builds on the community
accountmodule only â no Enterprise dependency. - Imported lines use the standard
account.bank.statement.linemodel, so they appear in the normal bank reconciliation flow. - Accountancy parentheses
(123.45)and trailing-minus123.45-are both read as negative amounts. - Compatible with Odoo 18 and Odoo 19.
Screenshots
Import Csv
Detection Samples
Mapping Templates
Update date: 2026-07-02
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1454 |
| Technical Name |
bank_csv_ai_column_detect |
| License | OPL-1 |
| Website | https://pokutsoft.com/ |
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