From d0cd05a670b7b1fa19d7c6586dc1ffa85147b60f Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 22 May 2019 13:02:01 +0000 Subject: [PATCH] [FIX] l10n_fr_fec: new line Commit 5dfb6e39affcde061a8ff9f03f17558f1d89f410 added the new line characters at the end of each line but the last one. However, it does so by adding a new element in the row: therefore, 19 columns are created instead of the 18 required. We add the new line character at the end of the last element of the row. opw-2000429 closes odoo/odoo#33571 Signed-off-by: Nicolas Martinelli (nim) --- addons/l10n_fr_fec/wizard/account_fr_fec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_fr_fec/wizard/account_fr_fec.py b/addons/l10n_fr_fec/wizard/account_fr_fec.py index d7f19f381c4..670109986d6 100644 --- a/addons/l10n_fr_fec/wizard/account_fr_fec.py +++ b/addons/l10n_fr_fec/wizard/account_fr_fec.py @@ -389,7 +389,7 @@ class AccountFrFec(models.TransientModel): rows_length = len(rows) for i, row in enumerate(rows): if not i == rows_length - 1: - row.append(lineterminator) + row[-1] += lineterminator writer.writerow(row) fecvalue = fecfile.getvalue()