From 0eda2e7c09954922380397858ce41d0663dc1159 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 11 Jan 2014 17:06:19 +0100 Subject: [PATCH] [FIX] Undefined variables msg, ref --- account_banking/banking_import_transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_banking/banking_import_transaction.py b/account_banking/banking_import_transaction.py index f3224dd12..e2b6e2c87 100644 --- a/account_banking/banking_import_transaction.py +++ b/account_banking/banking_import_transaction.py @@ -255,9 +255,9 @@ class banking_import_transaction(orm.Model): # creation. This also enables us to search for the invoice number in the # reference instead of the other way around, as most human interventions # *add* text. + ref = trans.reference.upper() + msg = trans.message.upper() if len(candidates) > 1 or not candidates: - ref = trans.reference.upper() - msg = trans.message.upper() # The manual usage of the sales journal creates moves that # are not tied to invoices. Thanks to Stefan Rijnhart for # reporting this.