From 8800b94e5b1168fef9e8bde74c94d1b564058dc3 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()