[FIX] account: Fix matching regex case insensitive in matching rules

The other filters are case insensitive, why not this one?

closes odoo/odoo#35899

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
Laurent Smet
2019-08-21 09:28:56 +00:00
parent 569a29ecee
commit 7b9720930a
@@ -326,7 +326,7 @@ class AccountReconcileModel(models.Model):
query += ' AND st_line.name NOT ILIKE %s'
params += ['%%%s%%' % rule.match_label_param]
elif rule.match_label == 'match_regex':
query += ' AND st_line.name ~ %s'
query += ' AND st_line.name ~* %s'
params += [rule.match_label_param]
# Filter on partners.