From beec09e27e48af13be61f9bcbd250a94e509de40 Mon Sep 17 00:00:00 2001 From: wan Date: Fri, 6 Nov 2020 08:26:35 +0000 Subject: [PATCH] [FIX] account: don't change the payment date This line seems to have been copied from before the refactoring https://github.com/odoo/odoo/commit/caeb782841fc5a7ad71a196e2c9ee67644ef9074 It didn't work at first: https://github.com/odoo/odoo/commit/ea3e39506a2b360545ec0cd1d3235e69ad16ea6c It conflicted with the new constraint for matching the date with the move name `_constrains_date_sequence` on `sequence.mixin`, and was right to conflict. closes odoo/odoo#61465 X-original-commit: 1aa0404966c6abc89d68a5118c2742de9e6b617b Signed-off-by: wan --- addons/account/models/account_bank_statement.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 7c3d66af6e4..3f620eed143 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -1217,10 +1217,6 @@ class AccountBankStatementLine(models.Model): (line + counterpart_line).reconcile() - # Update the payment date to match the current bank statement line's date. - if counterpart_line.payment_id: - counterpart_line.payment_id.date = self.date - # ------------------------------------------------------------------------- # BUSINESS METHODS # -------------------------------------------------------------------------