| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1366 |
| Technical Name |
bank_bai2_multi_account |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1366 |
| Technical Name |
bank_bai2_multi_account |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
US BAI2 Multi-Account Statement Splitter
Parse a multi-account US BAI2 cash-management file and route every account block to its matching Odoo bank journal â automatically.
US banks deliver consolidated cash-management statements in the BAI2 format (BAI Cash Management Balance Reporting Specification, Version 2). A single file routinely carries dozens of accounts for a corporate relationship. This app reads that file once, splits it into clean per-account records, reconciles each account's control total, and routes every account to the correct Odoo bank journal so the transactions land where they belong.
Built for the real BAI2 record structure
Full record coverage
- 01 File Header â sender, receiver, creation date/time, file ID
- 02 Group Header â as-of date, as-of time, currency
- 03 Account Identifier â account number plus opening/closing ledger and available balances
- 16 Transaction Detail â type code, amount, funds type, bank & customer references, free-text narrative
- 49 / 98 / 99 Account, Group and File trailers with control totals
- 88 Continuation records re-joined onto their parent transaction
Correct sign handling
BAI2 amounts carry no sign â direction comes from the three-digit type code. The app applies the published BAI2 range rules (100â399 credit, 400â699 debit, 001â099 balance/status, 700â799 loan) and ships a named lookup for the most-transmitted codes (lockbox, ACH, wire, check paid, service charge and more), so every line shows a human-readable label and the right plus/minus amount.
Multi-account routing
Automatic journal matching
Each account block is matched to a bank journal by its account number, using a normalised key that ignores leading zeros, spaces and dashes. Set an explicit BAI2 Account Number on a journal when the bank sends a number that differs from the one stored in Odoo.
Control-total reconciliation
Every account's Type 49 control total is reconciled against the sum of its signed transactions. Mismatches are surfaced in the parse log and flagged on the account, so a truncated or corrupted file never posts silently.
One-click import
Push the routed transactions into Odoo bank statement lines on each matched journal, ready for the standard reconciliation widget. Balance and status codes are skipped by default; unmatched accounts are listed rather than silently dropped.
Feature summary
| Capability | What it does |
|---|---|
| BAI2 v2 parser | Full 01/02/03/16/49/88/98/99 record support with continuation re-joining |
| Multi-account split | One file becomes one record per bank account, each with its own balances and transactions |
| Type-code engine | Published BAI2 range rules + named lookup for credit/debit/balance/loan codes |
| Journal routing | Normalised account-number matching, with per-journal override field |
| Reconciliation check | Type 49 control total vs summed signed transactions, per account |
| Statement import | Creates standard bank statement lines on each matched journal |
| Audit trail | Chatter log of parse, routing and import steps on every file |
Pure import â no transmission
This is a pure format parser. It reads BAI2 files you already download from your bank's cash-management portal; it never connects to any external service and transmits nothing. Your statement data never leaves your Odoo database.
Compatible with Odoo 18 and Odoo 19, Community and Enterprise. Depends only on the community Accounting base.
Keywords: BAI2, BAI, bank statement import, US bank cash management, multi-account statement, balance reporting, prior-day statement, bank journal routing, lockbox, ACH, wire.
Screenshots
Accounts
Statement Files
Transactions
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