[FIX] Analytic
lp bug: https://launchpad.net/bugs/1075436 fixed bzr revid: api@openerp.com-20121108082540-026nmjhrhyiuw710
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user