diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 879fa6cb6d4..3b8968f8912 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1459,8 +1459,9 @@ class AccountMoveLine(models.Model): an analytic account. This method is intended to be extended in other modules. """ amount = (self.credit or 0.0) - (self.debit or 0.0) + default_name = self.name or (self.ref or '/' + ' -- ' + (self.partner_id and self.partner_id.name or '/')) return { - 'name': self.name, + 'name': default_name, 'date': self.date, 'account_id': self.analytic_account_id.id, 'tag_ids': [(6, 0, self.analytic_tag_ids.ids)],