diff --git a/account_statement_completion_label/statement.py b/account_statement_completion_label/statement.py index 0d50ae56..4ae36143 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