From 39892cdaa17707afc9528ca332abbb944806acc7 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 1 Aug 2017 16:03:46 +0200 Subject: [PATCH] [FIX] account: Only 64 characters for the name of an entry When creating a customer invoice with description/reference with more than 64 characters, the description was cut to generate the name of the account move lines. But it's possible to create an entry with more than 64 characters as name by the interface. The limitation is deprecated. opw:760316 --- addons/account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index d09e1600f87..afbcd6f6b69 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -926,7 +926,7 @@ class AccountInvoice(models.Model): return { 'date_maturity': line.get('date_maturity', False), 'partner_id': part, - 'name': line['name'][:64], + 'name': line['name'], 'debit': line['price'] > 0 and line['price'], 'credit': line['price'] < 0 and -line['price'], 'account_id': line['account_id'],