[FIX] Analytic name_get fixed
authorArnaud Pineux <api@openerp.com>
Thu, 8 Nov 2012 09:19:48 +0000 (10:19 +0100)
committerArnaud Pineux <api@openerp.com>
Thu, 8 Nov 2012 09:19:48 +0000 (10:19 +0100)
lp bug: https://launchpad.net/bugs/1076015 fixed

bzr revid: api@openerp.com-20121108091948-8ynn3bn8pjj554q8

addons/analytic/analytic.py

index 3173270..8dd73f6 100644 (file)
@@ -99,7 +99,10 @@ class account_analytic_account(osv.osv):
     def name_get(self, cr, uid, ids, context=None):
         res = []
         full_ids = []
-        full_ids.append(ids)
+        if isinstance(ids,list):
+            full_ids.extend(ids)
+        else:
+            full_ids.append(ids)
         for id in full_ids:
             elmt = self.browse(cr, uid, id, context=context)
             res.append((id, self._get_one_full_name(elmt)))