From 4840f7689172aff58b2220ec69dc16e1fe5cacdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Jan 2024 17:02:23 +0100 Subject: [PATCH] Use transaction date for accounting date when importing AEB43 statement Closes #12886 (grafted from 8ec4668ff251e147fdd80e25b65de4201811c5df) --HG-- branch : 7.0 --- modules/account_statement_aeb43/statement.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/account_statement_aeb43/statement.py b/modules/account_statement_aeb43/statement.py index 5b9e1cbf0f..a105a9df9b 100644 --- a/modules/account_statement_aeb43/statement.py +++ b/modules/account_statement_aeb43/statement.py @@ -74,10 +74,7 @@ class ImportStatement(metaclass=PoolMeta): pool = Pool() Origin = pool.get('account.statement.origin') origin = Origin() - try: - origin.date = transaction.valueDate - except ValueError: - origin.date = transaction.transactionDate + origin.date = transaction.transactionDate origin.amount = transaction.amount descriptions = [] for item in transaction.optionalItems: