From f3e7679710786b05a076c92066164dff94a9adee Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Fri, 30 Oct 2015 15:27:05 +0100 Subject: [PATCH] [FIX] account: date on account.move.line When an account.move.line(aml) is created for a reconciliation, the date used in the aml must be the date of the bank.statement.line used to create the aml. opw:653335 --- addons/account/models/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 4c93cb35b94..e81b2f8af98 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -818,7 +818,7 @@ class AccountBankStatementLine(models.Model): ctx = dict(self._context, date=self.date) for aml_dict in to_create: aml_dict['move_id'] = move.id - aml_dict['date'] = self.statement_id.date + aml_dict['date'] = self.date aml_dict['partner_id'] = self.partner_id.id aml_dict['journal_id'] = self.journal_id.id aml_dict['company_id'] = self.company_id.id