From be0cae3e7bc43908de2936cb73511c80aaa73523 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 30 Jul 2015 11:50:49 +0200 Subject: [PATCH] [FIX] excape backslash --- base_bank_account_number_unique/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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