[FIX] Analytic

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

bzr revid: api@openerp.com-20121108082540-026nmjhrhyiuw710
This commit is contained in:
Arnaud Pineux
2012-11-08 09:25:40 +01:00
parent f5375d0eaa
commit 02bac97be9
+5 -7
View File
@@ -98,13 +98,11 @@ class account_analytic_account(osv.osv):
def name_get(self, cr, uid, ids, context=None):
res = []
if isinstance(ids,list):
for id in ids:
elmt = self.browse(cr, uid, id, context=context)
res.append((id, self._get_one_full_name(elmt)))
else:
elmt = self.browse(cr, uid, ids, context=context)
res.append((ids, self._get_one_full_name(elmt)))
full_ids = []
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)))
return res
def _get_full_name(self, cr, uid, ids, name=None, args=None, context=None):