Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

License: AGPL-3

Unique bank account numbers

It can be desirable to be able to rely on a bank account number identifying exactly one partner. This module allows you to enforce this, so that an account number is unique in the system.

Installation

During installation, the module checks if your bank account numbers are unique already. If this is not the case, you won’t be able to install the module until duplicates are fixed.

The error message only shows the first few duplicates, in order to find all of them, use the following statement:

with res_partner_bank_sanitized as (
    select
        id, acc_number,
        regexp_replace(acc_number, '\W+', '', 'g') acc_number_sanitized
    from res_partner_bank
),
res_partner_bank_sanitized_grouped as (
    select
        array_agg(id) ids, acc_number_sanitized, count(*) amount
    from res_partner_bank_sanitized group by acc_number_sanitized
)
select * from res_partner_bank_sanitized_grouped where amount > 1;

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.

Release files for odoo8-addon-base-bank-account-number-unique 8.0.1.0.1.99.dev7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo8-addon-base-bank-account-number-unique 8.0.1.0.1.99.dev7
File Interpreter ABI Platform
odoo8_addon_base_bank_account_number_unique-8.0.1.0.1.99.dev7-py2-none-any.whl Python 2 none any Details

Release files / odoo8_addon_base_bank_account_number_unique-8.0.1.0.1.99.dev7-py2-none-any.whl

Download URL odoo8_addon_base_bank_account_number_unique-8.0.1.0.1.99.dev7-py2-none-any.whl
Size 23.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
60057950b05407aaf1a62552b22b05c0ba85d02078ea3de3784ef2e551872f6a
BLAKE2b-256 checksum
How to use checksums
ff6d289383ee48aa2c19d7f6fa1ce7473d1a3edf40e8ad0ecb8bec7c5909dc97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page