From e9b3a9eed8d9e832bbf3660b65dac71cd8c7eced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Oct 2025 17:57:27 +0200 Subject: [PATCH] Use description used when exporting FEC file Closes #14255 --- modules/account_fr/account.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/account_fr/account.py b/modules/account_fr/account.py index 966d8a4754..4418ceb6f4 100644 --- a/modules/account_fr/account.py +++ b/modules/account_fr/account.py @@ -256,13 +256,6 @@ class FrFEC(Wizard): ]) def get_row(self, line, format_date, format_number): - def description(): - value = line.move.description or '' - if line.description: - if value: - value += ' - ' - value += line.description - return value end_date = self.start.fiscalyear.end_date reconciliation = None if line.reconciliation and line.reconciliation.date <= end_date: @@ -278,7 +271,7 @@ class FrFEC(Wizard): line.party.name if line.party else '', self.get_reference(line) or '-', format_date(self.get_reference_date(line)), - description() or '-', + line.description_used or '-', format_number(line.debit or 0), format_number(line.credit or 0), reconciliation.rec_name if reconciliation else '',