From a31820d0cb780108ff1f4a0d322ca8e3bd180da3 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 8 Aug 2017 10:22: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 c379cadaf4c..4010cf25fc4 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -862,7 +862,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'],