From 4826ae3dbe120113b52e685ee350c92bb00a5b92 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 5 May 2017 11:01:28 +0200 Subject: [PATCH] [FIX] protect against null values --- ...t_bank_statement_import_auto_reconcile_exact_amount.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py b/account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py index f514966..5973e76 100644 --- a/account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py +++ b/account_bank_statement_import_auto_reconcile/models/account_bank_statement_import_auto_reconcile_exact_amount.py @@ -37,10 +37,10 @@ class AccountBankStatementImportAutoReconcileExactAmount(models.AbstractModel): domain = [ '|', '|', '|', - ('ref', operator, statement_line.ref), - ('name', operator, statement_line.name), - ('ref', operator, statement_line.name), - ('name', operator, statement_line.ref), + ('ref', operator, statement_line.ref or ''), + ('name', operator, statement_line.name or ''), + ('ref', operator, statement_line.name or ''), + ('name', operator, statement_line.ref or ''), ('reconcile_id', '=', False), ('state', '=', 'valid'), ('account_id.reconcile', '=', True),