From 566939f07acb96b6be0581f68f4c34470f1b48f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Wed, 8 Jun 2022 10:16:00 +0200 Subject: [PATCH] [IMP]pms: statement autoreconcile suspense account --- pms/models/account_bank_statement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pms/models/account_bank_statement.py b/pms/models/account_bank_statement.py index 96a61bf59..ae593c293 100644 --- a/pms/models/account_bank_statement.py +++ b/pms/models/account_bank_statement.py @@ -37,6 +37,7 @@ class AccountBankStatement(models.Model): payment_move_line = line._get_payment_move_lines_to_reconcile() statement_move_line = line.move_id.line_ids.filtered( lambda line: line.account_id.reconcile + or line.account_id == line.journal_id.suspense_account_id ) if payment_move_line and statement_move_line: statement_move_line.account_id = payment_move_line.account_id