From 038a355ea737dadb45dce8ccf342385b87aa28fa Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Wed, 5 Dec 2012 08:22:19 +0100 Subject: [PATCH] [FIX] Typo and docstring --- account_banking/wizard/banktools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_banking/wizard/banktools.py b/account_banking/wizard/banktools.py index fc48aaa64..c8b1ce0e3 100644 --- a/account_banking/wizard/banktools.py +++ b/account_banking/wizard/banktools.py @@ -125,6 +125,9 @@ def get_or_create_partner(pool, cursor, uid, name, address, postal_code, city, country_code, log): ''' Get or create the partner belonging to the account holders name + + If multiple partners are found with the same name, select the first and + add a warning to the import log. ''' partner_obj = pool.get('res.partner') partner_ids = partner_obj.search(cursor, uid, [('name', 'ilike', name)]) @@ -180,7 +183,7 @@ def get_or_create_partner(pool, cursor, uid, name, address, postal_code, city, else: if len(partner_ids) > 1: log.append( - _('More then one possible match found for partner with name %(name)s') + _('More than one possible match found for partner with name %(name)s') % {'name': name} ) partner_id = partner_ids[0]