From 1d2749a3d70ff1beab1eb9d221135fd25ead59b8 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 28 Apr 2011 09:02:02 +0200 Subject: [PATCH] improve a variable name bzr revid: rco@openerp.com-20110428070202-0w5iwofu1noyi2wc --- addons/portal/wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/portal/wizard.py b/addons/portal/wizard.py index 3856821df4c..fbd78e2a988 100644 --- a/addons/portal/wizard.py +++ b/addons/portal/wizard.py @@ -80,8 +80,8 @@ class wizard(osv.osv_memory): for p in partners: if p.address: # take default address if present, or any address otherwise - good = filter(lambda a: a.type == 'default', p.address) - addresses.append(good[0] if good else p.address[0]) + def_addrs = filter(lambda a: a.type == 'default', p.address) + addresses.append(def_addrs[0] if def_addrs else p.address[0]) # create user configs based on these addresses user_data = lambda address: {