[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:
Quentin (OpenERP) 2012-11-30 17:34:45 +01:00
parent ab7d73f3e3
commit 4d3260d92b
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ''