diff --git a/base_bank_account_number_unique/hooks.py b/base_bank_account_number_unique/hooks.py index 76da96f..8bcdca3 100644 --- a/base_bank_account_number_unique/hooks.py +++ b/base_bank_account_number_unique/hooks.py @@ -31,7 +31,7 @@ def post_init_hook(cr, pool): """ with res_partner_bank_sanitized as - (select id, acc_number, regexp_replace(acc_number, '\W+', '', 'g') + (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