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
    • Approvals
    • 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
    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. Accounting
  3. US BAI2 File Writer v 19.0
  4. Sales Conditions FAQ

US BAI2 File Writer

by Baris Genc https://gencbaris.com/odoo_plugins/
Odoo

$ 48.37

v 19.0 Third Party
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
Lines of code 1274
Technical Name bank_bai2_writer
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
Lines of code 1274
Technical Name bank_bai2_writer
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
  • Description
  • License

US BAI2 File Writer

Produce bank-grade BAI2 (BAI Version 2) cash-management statement files from your Odoo bank journals and transactions

US BAI2 File Writer turns the bank transactions you already hold in Odoo into a clean, fully balanced BAI2 cash-management file — the BAI Cash Management Balance Reporting Specification, Version 2 format that US corporate treasury workstations and ERP cash-positioning tools consume. Build the file in a few clicks, review every record, and download a ready-to-load .bai file. Everything runs inside your database: no external service, no per-file fee, your bank data never leaves Odoo.

Complete, well-formed record set

Every BAI2 record type is written in the correct order with the correct fields:

  • Type 01 — File Header: sender/receiver id, creation date and time, file id, BAI version 2.
  • Type 02 — Group Header: originator, ultimate receiver, group status, as-of date/time and currency.
  • Type 03 — Account Identifier: account number, currency and repeating balance triplets (type code, amount, item count, funds type).
  • Type 16 — Transaction Detail: type code, amount, funds type, bank and customer references, free text.
  • Type 49 / 98 / 99 — Trailers: account, group and file trailers with control totals and record counts.

Correct control totals & counts

A BAI2 file is rejected on load if any trailer total or record count is wrong. This module re-derives them exactly the way a receiving workstation does:

  • Signed control totals in integer cents — credits positive, debits negative — summed account → group → file.
  • Record counts that include the trailer itself at each level (49 counts 03+16…+49, 98 counts 02…+98, 99 counts the whole file).
  • Amounts in minor units (cents) with no decimal point and round-half-up cent handling to avoid float drift.
  • Negative / overdraft balances written with a leading minus sign per the specification.

Build straight from bank transactions

  • One-click wizard turns a date range of bank statement lines from one or many bank journals into a BAI2 file.
  • Opening (010) and closing (015) ledger balances are computed from the prior balance plus the period net.
  • Each statement line maps to a credit (108) or debit (409) transaction by the sign of its amount, carrying the reference and description.

Full BAI2 type-code library

  • Curated status/balance codes (010 Opening Ledger, 015 Closing Ledger, 045 Closing Available, and more).
  • Curated transaction codes across the credit (100-399) and debit (400-699) ranges — lockbox, ACH, wire, check paid, service charge, interest and others.
  • Automatic credit/debit classification and human-readable descriptions from the published numbering scheme.

Feature overview

Area What you get
Records Type 01, 02, 03, 16, 49, 98, 99 — full hierarchy
Balances Opening / closing ledger and available balances as Type 03 status triplets
Transactions Type 16 detail with type code, funds type, bank and customer references, free text
Integrity Signed control totals and inclusive record counts at account, group and file level
Sources Manual entry or one-click build from bank statement lines across multiple journals
Output Downloadable .bai file with in-app preview and draft / generated / sent workflow
Privacy 100% in-database — no external transmission, no gateway, no per-file fees

How it works

  1. Set your BAI2 Sender, Receiver and Originator ids in Settings.
  2. Create a BAI2 file manually, or run Build from Transactions over a journal and date range.
  3. Review the accounts, balances and transactions, then Generate the file.
  4. Inspect the live preview, confirm the control totals, and Download the .bai file to upload to your treasury system or bank portal.

Disclosure: this module only builds the BAI2 text file from your own Odoo data for you to load into your own treasury workstation or bank portal. It transmits nothing to any external service and makes no accreditation claim. Compatible with Odoo 18 and Odoo 19.

Screenshots

Build From Transactions

Build From Transactions

Bai2 Files

Bai2 Files

Settings

Settings

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