How-to
Odoo Bank Statement Import: CSV/Excel Template, Mapping and Automation
How to import CSV or Excel bank statements into an Odoo bank journal: a working file template, the fields Odoo needs, how column mapping works, and practical ways to automate a recurring import.
Kalvyai Engineering · · 7 min read

On this page
Most banks let you export transactions as CSV or Excel. Odoo can read these files, but there is no single file that works for every bank. You build a clean file, map its columns to Odoo's fields once, and reuse that mapping every time.
This guide covers the file layout, the required fields, column mapping, the errors people hit most often, and options for automating the import.
Which Odoo versions and editions this covers
- Odoo 16, 17 and 18 Enterprise: CSV and XLSX bank statement import is built into Accounting. The steps below are written for these versions.
- Odoo 16, 17 and 18 Community: there is no built-in CSV/XLSX bank statement importer. The usual route is the OCA modules from the
bank-statement-importrepository (see the Community section below). - Older versions (13–15): the ideas are the same, but menu labels and module names differ.
Button labels change slightly between versions, so placeholders mark spots where you should confirm the exact wording on your database.
Before you import: set up the bank journal
The import always targets one bank journal. Check these first:
- Go to Accounting > Configuration > Journals and open your bank journal (or create one with type Bank).
- Set the Account Number (the bank account linked to the journal).
- Set the Currency if the account is not in your company currency.
- Check the journal's bank statement import setting (the field that says where statements come from: manual, file import, or bank synchronisation).
One bank account = one journal. Do not import two different accounts into the same journal, or reconciliation will never balance.
Is there a standard import template?
Not one that fits every bank. Each bank exports different column names, date formats and sign conventions. Odoo handles this with a mapping step: you tell it which column in your file is the date, which is the amount, and so on.
In practice, "the template" is a clean version of your bank's export with a single header row. Here is a minimal layout that imports without problems:
Date,Label,Partner,Reference,Amount,Balance
2024-03-01,Opening transfer,,TRF-0001,0.00,12500.00
2024-03-02,Payment from Acme Ltd INV/2024/0031,Acme Ltd,NEFT123456,4200.00,16700.00
2024-03-03,Office rent March,Landlord Co,CHQ-889,-3000.00,13700.00
2024-03-05,Bank charges,,,-15.50,13684.50If your bank exports separate debit and credit columns instead of one signed amount, that works too:
Date,Description,Reference,Debit,Credit,Balance
02/03/2024,Payment from Acme Ltd,NEFT123456,,4200.00,16700.00
03/03/2024,Office rent March,CHQ-889,3000.00,,13700.00The Odoo import screen may also offer a downloadable template for the bank statement line model.
Required and useful fields
When you map columns, these are the fields that matter.
Required
Odoo field | What it holds | Notes |
|---|---|---|
Date | Transaction or value date | Pick one consistently. Value date usually matches the bank balance better. |
Label | Transaction description | Shown on the reconciliation screen and used by matching rules. Keep the full bank text. |
Amount | Signed amount | Positive = money in, negative = money out. Or map Debit and Credit instead (see below). |
Strongly recommended
- Balance: the running balance after each line. Odoo can use it to set the statement's starting and ending balance, which gives you a built-in check that nothing is missing.
- Reference: the bank's transaction reference (UTR, cheque number, etc.). Helps matching and audits.
- Partner: only if your file has a name that exactly matches a contact in Odoo. Unmatched names are a common import error; leave it unmapped if in doubt and let reconciliation rules find the partner.
For foreign currency lines
- Amount in Currency and Foreign Currency: only when the line was in a different currency than the journal.
Debit and credit columns
If the file has separate Debit and Credit columns, map them to the debit/credit options rather than to Amount. Odoo combines them into one signed amount (credit to the account = positive, debit = negative).
Step by step: importing a file in Odoo Enterprise
- Clean the file. Open the bank export and delete everything that is not a transaction row: bank logo rows, account details above the table, page breaks, "Total" and "Closing balance" rows at the bottom. Keep exactly one header row.
- Save it as CSV (UTF-8) or XLSX. Avoid old
.xlsfiles if you have problems; re-save as.xlsxor CSV. - Open the import. Go to the Accounting Dashboard, find your bank journal's card and use its import option.
- Upload the file. Odoo shows the import screen with your columns on the left and a field dropdown for each.
- Set the formatting options in the side panel:
- Encoding (UTF-8 in most cases)
- Separator (comma or semicolon) for CSV
- Date format, e.g.
%d/%m/%Yfor 03/02/2024 meaning 3 February - Decimal separator and Thousands separator (important for banks that use
1.234,56) - Use first row as header ticked
- Map each column to an Odoo field: Date, Label, Amount (or Debit/Credit), Balance, Reference, Partner. Set any column you do not need to "Don't import".
- Click Test. Fix every error Odoo reports before importing. Nothing is written during a test.
- Click Import. Odoo creates the statement lines in the bank journal.
- Check the balances. Compare the ending balance in Odoo with the closing balance on the bank's PDF statement.
- Reconcile. Open the journal's reconciliation view and match lines to invoices, bills and payments.
Saving the mapping for next time
Odoo's import tool remembers which column header you mapped to which field. If your bank keeps the same column names, the next import pre-fills the mapping automatically. Keep the header row identical each month and you only do the mapping once.
Odoo Community: using the OCA modules
Community does not include a CSV/XLSX bank statement importer. The OCA bank-statement-import repository provides:
account_statement_import_file: the generic file import wizard.account_statement_import_sheet_file: CSV/XLSX import with a saved sheet mapping per bank (column names, date format, separators, debit/credit handling, header lines to skip).
The sheet mapping approach suits recurring imports well: you configure the layout once per bank, link it to the journal, and every later file is parsed the same way.
Install OCA modules on a test database first and check their dependencies. If you are moving between versions, confirm the modules are ported to your target version before planning the upgrade.
Common import errors and fixes
- "Unknown date format" or wrong dates: day and month are swapped. Set the date format explicitly instead of relying on auto-detection.
- Amounts imported as 0 or 1,000 times too large: wrong decimal or thousands separator.
- Negative amounts in brackets, like
(3000.00): convert them to-3000.00before importing. - Amounts with currency symbols (
₹,$,€): remove the symbol from the column. - Partner not found: unmap the Partner column or correct the names to match Odoo contacts exactly.
- Duplicate lines: overlapping date ranges between files. Import statements in non-overlapping periods, e.g. one per calendar month.
- Balance does not match the bank: a missing row, a total row left in the file, or the opening balance was not carried over.
Can the import be automated?
Yes. If your bank's file layout stays the same, you have four realistic options, from least to most effort.
1. Reuse the saved mapping
Not full automation, but the monthly job drops to: export, clean, upload, test, import. For one or two accounts this is often enough.
2. Ask the bank for a structured format
Many banks offer CAMT.053, OFX or MT940 in addition to CSV. These formats have fixed structures, so no column mapping is needed. Odoo Enterprise supports several of them natively.
3. Online bank synchronisation
Odoo Enterprise can connect to supported banks and pull transactions automatically. Coverage depends on your country and bank.
4. A scheduled script using the Odoo API
If your bank drops a CSV on an SFTP server or emails it daily, a small script can create the statement lines through Odoo's external API. The example below reads a debit/credit CSV and skips lines already imported.
import csv
import hashlib
import xmlrpc.client
from datetime import datetime
URL = "https://your-odoo.example.com"
DB = "your-database"
USER = "api-user@example.com"
API_KEY = "your-api-key"
JOURNAL_ID = 7 # ID of the bank journal
common = xmlrpc.client.ServerProxy(f"{URL}/xmlrpc/2/common")
uid = common.authenticate(DB, USER, API_KEY, {})
models = xmlrpc.client.ServerProxy(f"{URL}/xmlrpc/2/object")
def call(model, method, args, kwargs=None):
return models.execute_kw(DB, uid, API_KEY, model, method, args, kwargs or {})
def to_float(value):
value = (value or "").replace(",", "").strip()
return float(value) if value else 0.0
with open("statement.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
date = datetime.strptime(row["Date"], "%d/%m/%Y").date().isoformat()
amount = to_float(row["Credit"]) - to_float(row["Debit"])
key = f"{date}|{row['Description']}|{amount}|{row['Balance']}"
unique_id = f"{JOURNAL_ID}-{hashlib.sha1(key.encode()).hexdigest()}"
exists = call("account.bank.statement.line", "search_count",
[[("unique_import_id", "=", unique_id)]])
if exists:
continue
call("account.bank.statement.line", "create", [{
"journal_id": JOURNAL_ID,
"date": date,
"payment_ref": row["Description"],
"amount": amount,
"unique_import_id": unique_id,
}])Notes on this approach:
- Create a dedicated Odoo user with only the accounting rights it needs, and use an API key, not a password.
- Field names on
account.bank.statement.linecan change between versions. Check them in developer mode on your database before running anything. - Test against a copy of your database first.
- Run it from cron or any scheduler, and log what was created and what was skipped.
- Keep the human step where it matters: the script only imports lines. Reconciliation and posting stay with your accounting team.
Making reconciliation faster after import
Import is half the job. Once lines are in Odoo, set up reconciliation models (Accounting > Configuration) for recurring items like bank charges, rent and salary transfers, so they are suggested or matched automatically. Keep the full bank description in the Label field, because these rules match on it.
If you handle high volumes of UPI, NEFT or IMPS transactions, our AI Bank Reconciliation app for Odoo Community and Enterprise imports CSV/Excel bank statements and auto-matches those transactions, which covers both the import and the matching step on Community too.
A short checklist
- One bank journal per bank account, with account number and currency set.
- A clean file: one header row, no totals, consistent date and number formats.
- Date, Label and Amount (or Debit/Credit) mapped; Balance and Reference if available.
- Test before Import, every time.
- Ending balance in Odoo matches the bank's closing balance.
- For recurring imports: saved mapping, a structured bank format, bank sync, or a scheduled API script.
How Kalvyai can help
We implement and customise Odoo, including bank journal setup, statement import for local bank formats, OCA module installation on Community, scheduled import scripts and reconciliation rules. If your bank's export is awkward or you want the import fully automated with an approval step before anything is posted, get in touch.
- Odoo
- Accounting
- Bank Statements
- CSV Import
- Bank Reconciliation
- Automation
Kalvyai Engineering · Engineering team
The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.



Comments
No comments yet. Questions and corrections are welcome.
Rate this post or leave a comment