From dc895512ba71cfa3374bc8b7b6646d45fe73e985 Mon Sep 17 00:00:00 2001 From: Roel Adriaans Date: Sun, 13 Jul 2014 14:57:05 +0200 Subject: [PATCH] [IMP] Add statement line reference to search Add the reference to the search for matching statements. When importing CAMT (Dutch banking files) the description of the invoice is filled in the reference field. The name field only has the index (eg 001), not the full text. --- account_statement_completion_label/statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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