From 8498816a26f42cb634d494b7bc9ce16af41de10d Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Mon, 12 Aug 2013 08:15:02 +0200 Subject: [PATCH] [FIX] use a tuple instead of a list --- partner_firstname/partner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/partner_firstname/partner.py b/partner_firstname/partner.py index ca9e829c0..e38b2ec66 100644 --- a/partner_firstname/partner.py +++ b/partner_firstname/partner.py @@ -33,8 +33,7 @@ class ResPartner(Model): def _compute_name_custom(self, cursor, uid, ids, fname, arg, context=None): res = {} for rec in self.read(cursor, uid, ids, ['firstname', 'lastname']): - names = [rec['lastname'], - rec['firstname']] + names = (rec['lastname'], rec['firstname']) fullname = " ".join([s for s in names if s]) res[rec['id']] = fullname return res