Browse Source

[FIX] excape backslash

pull/31/head
Holger Brunn 9 years ago
parent
commit
be0cae3e7b
  1. 2
      base_bank_account_number_unique/hooks.py

2
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

Loading…
Cancel
Save