Account Statement Line Order
This module adds a configuration field Statement Line Internal Index on bank journals to allow changing the default computation of the internal_index of bank statement lines.
The internal_index is used to order the statement lines.
When importing multiple bank statements for the same day, the default computation does not work well; because the lines of each statement are mixed together.
Using the custom index computation Statement together ... statement lines from the same statement are kept together.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds a setting on bank journals to choose how bank statement lines are ordered, so lines from the same imported statement stay together instead of being mixed with other statements of the same day.
When several bank statements are imported for the same day, Odoo's default ordering can mix their lines together. This module gives you a choice on each bank journal.
- On the journal form, in the Advanced Settings tab, a new "Bank Statements" group appears for bank journals with the field "Statement Line Internal Index".
- Two options are offered: "Default (Date, Line sequence/ID)" which keeps Odoo's standard ordering, and "Statement together (Date, Statement ID, Line sequence/ID)" which groups the lines of the same statement together.
- The default value is the standard ordering, so nothing changes until you pick the other option.
The chosen option changes how the internal ordering index of bank statement lines is computed. With the "Statement together" option, the order is built from the line date, then the statement it belongs to, then the line sequence and its identifier. This keeps the lines of one statement contiguous in the list.
The module touches the bank journal configuration (account.journal) and the bank statement line model (account.bank.statement.line). It does not add new menus or reports; it only adds the setting and the ordering behaviour.
Depends on
Models and fields (2)
- account.journal · extends an existing modelstatement_line_internal_index
- account.bank.statement.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/bank-statement-import.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.