[FIX] Analytic name_get fixed

lp bug: https://launchpad.net/bugs/1076015 fixed

bzr revid: api@openerp.com-20121108091948-8ynn3bn8pjj554q8
This commit is contained in:
Arnaud Pineux 2012-11-08 10:19:48 +01:00
parent 784133eac6
commit d37a79d0da
1 changed files with 4 additions and 1 deletions

View 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)))