From 4f2ba741af913c36dd944070b6cbe5aaf682ced6 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Tue, 30 Mar 2021 09:31:43 +0000 Subject: [FIX] account: count in dashboard statement lines marked 'to_check' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Reconcile of a bank statement, checking the "To check" box on the manual operation before validation 2. Go to accounting dashboard The statement line will not be counted in the "to check" action. This occur because the action only filter on reconciled moves This reverts commit 6b0017ffda4dd737a7600e05a4f6d0fa50d90ce4. opw-2475663 closes odoo/odoo#68548 Related: odoo/enterprise#17376 Signed-off-by: William André (wan) --- addons/account/models/account_journal_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/account') diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index be544847bc7..49e79a5501f 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -431,7 +431,7 @@ class account_journal(models.Model): def to_check_ids(self): self.ensure_one() domain = self.env['account.move.line']._get_suspense_moves_domain() - domain += [('journal_id', '=', self.id),('statement_line_id.is_reconciled', '=', False)] + domain.append(('journal_id', '=', self.id)) statement_line_ids = self.env['account.move.line'].search(domain).mapped('statement_line_id') return statement_line_ids -- cgit v1.2.3