[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
This commit is contained in:
Goffin Simon
2017-08-01 17:14:28 +02:00
parent e6ad245634
commit 39892cdaa1
+1 -1
View File
@@ -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'],