OdooWiki OCA HUB

Clear all partners in bank statement lines

account_bank_statement_clear_partner folder_open OCA/bank-statement-import open_in_new
Invoicing Management License: AGPL-3

This module extends the functionality of account_bank_statement, and allows to Clear all partners in a bank statement line where the line hasn't been reconciled.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a 'Clear partners' button on bank statements that removes the partner assigned to every line that has not yet been reconciled.

This module adds a single action to bank statements in Odoo: a button labelled 'Clear partners'.

  • The button appears on the bank statement form, right after the existing validate/action button.
  • It is only visible when the statement is still open, has at least one line, and not all lines are already reconciled.
  • When clicked, it goes through all the statement lines and, for each line that is not reconciled, it empties the partner field.
  • Lines that are already reconciled keep their partner untouched.

This is useful when a statement was imported or entered with the wrong partner on many lines and you want to reset them in one go instead of editing each line manually. It only touches the partner information on unreconciled lines; amounts, dates, references and reconciliation status are not changed.

The module works on the account.bank.statement model and its lines, and only depends on the standard Accounting app. No new menus, reports, emails or scheduled jobs are added.

Depends on

account
Models and fields (1)
  • account.bank.statement · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 15.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/bank-statement-import.

terminal Installation and usage

OCA documentation · Odoo 15.0

Enable the Show Full Accounting Features option for your user under Settings > Users & Companies > Users

To use this module, you need to:

  • Go to Invoicing.
  • Click on the name of a bank journal (Bank in demo data, for example).
  • Select a bank statement.
  • Press "Clear partners" button located on the header.
  • All partners in non-reconciled lines will be cleared.

No verified information in OCA: Installation.

info

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.