From 400a63375363dcb27bcc3141ae2d8d7a87415d9e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 13 Sep 2018 11:56:37 +0200 Subject: [PATCH] Fix bad port of name_get() of account.analytic.account to v10 --- account_usability/account.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account_usability/account.py b/account_usability/account.py index 181ed6d..75b7417 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -243,9 +243,7 @@ class AccountAnalyticAccount(models.Model): if self._context.get('analytic_account_show_code_only'): res = [] for record in self: - res.append(( - record.id, - record.code or record._get_one_full_name(record))) + res.append((record.id, record.code or record.name)) return res else: return super(AccountAnalyticAccount, self).name_get()