Enforce uniqueness on bank accounts
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.
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;
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.
- Holger Brunn <email@example.com>
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 history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size odoo8_addon_base_bank_account_number_unique-184.108.40.206.1.99.dev6-py2-none-any.whl (24.1 kB)||File type Wheel||Python version py2||Upload date||Hashes View|
Hashes for odoo8_addon_base_bank_account_number_unique-220.127.116.11.1.99.dev6-py2-none-any.whl