diff --git a/account_statement_completion_label/statement.py b/account_statement_completion_label/statement.py index 7f722821..1f9d5bc1 100644 --- a/account_statement_completion_label/statement.py +++ b/account_statement_completion_label/statement.py @@ -92,7 +92,7 @@ class AccountStatementCompletionRule(orm.Model): ON st_l.statement_id = s.id WHERE - st_l.name ~* l.label + (st_l.name ~* l.label OR st_l.ref ~* l.label) AND l.profile_id = s.profile_id AND