OdooWiki OCA HUB

Bank Account Account Type Constraint

partner_bank_acc_type_constraint folder_open OCA/partner-contact open_in_new
Partners License: AGPL-3

This module aims at restoring the behavior of bank account types of Odoo 8.0 and previous versions : the user manually selects the bank account type and, if the checkum doesn't match the selected bank account type, Odoo raises a blocking error message.

With Odoo 9.0 and upper versions, when a user enters an invalid IBAN in Odoo, he often don't realize that he has entered an invalid IBAN because he doesn't have any explicit error message.

With this module, when a user enters an invalid IBAN in Odoo, he will get an explicit error message that will prevent him from saving the account number.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets users manually choose the type of a partner's bank account (IBAN, BBAN, etc.) and blocks saving when the entered number does not match the selected type, showing a clear error message.

When you add or edit a bank account on a partner, you now pick the account type yourself in a new 'Account Type' field instead of Odoo guessing it silently.

  • The field appears on the partner form (in the bank accounts list), on the bank account form and in the bank account list, and it is required.
  • Odoo's own automatically detected account type is hidden from the form, so the manual choice is the one that matters.
  • When you save, Odoo compares the number you typed with the type you selected. If they do not match, saving is blocked and an error message tells you the real type of the number and the type you selected.
  • You can group bank accounts by this account type in the bank account search view.
  • When the module is installed, existing bank accounts are automatically filled with the type Odoo had detected for them, so nothing is left empty.

This affects partner bank accounts (res.partner.bank) and the partner form (res.partner).

Depends on

account
Models and fields (1)
  • res.partner.bank · extends an existing modelacc_type_manual (Account Type)

Text generated by AI (DeepSeek) from reading the Odoo 16.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/partner-contact.

terminal Installation and usage

No verified information

Installation 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.

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.