[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:
parent
784133eac6
commit
d37a79d0da
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue