diff --git a/addons/analytic/models/analytic_account.py b/addons/analytic/models/analytic_account.py index 286ff4a66f5d5829ca93a12f07b6623ff1eefb20..48c41a69ccc4f8add4e6a67412e032cc36b1e550 100644 --- a/addons/analytic/models/analytic_account.py +++ b/addons/analytic/models/analytic_account.py @@ -146,7 +146,7 @@ class AccountAnalyticAccount(models.Model): name = analytic.name if analytic.code: name = '[' + analytic.code + '] ' + name - if analytic.partner_id: + if analytic.partner_id.commercial_partner_id.name: name = name + ' - ' + analytic.partner_id.commercial_partner_id.name res.append((analytic.id, name)) return res