[IMP] analytic: don't display the full name of templates in name_get()
bzr revid: qdp-launchpad@openerp.com-20121130163445-zaetj2o42s2jjwly
This commit is contained in:
parent
ab7d73f3e3
commit
4d3260d92b
|
@ -120,7 +120,7 @@ class account_analytic_account(osv.osv):
|
|||
def _get_one_full_name(self, elmt, level=6):
|
||||
if level<=0:
|
||||
return '...'
|
||||
if elmt.parent_id:
|
||||
if elmt.parent_id and not elmt.type == 'template':
|
||||
parent_path = self._get_one_full_name(elmt.parent_id, level-1) + "/"
|
||||
else:
|
||||
parent_path = ''
|
||||
|
|
Loading…
Reference in New Issue