summaryrefslogtreecommitdiff
path: root/addons/account
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2021-03-30 09:31:43 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2021-04-06 15:28:01 +0000
commit4f2ba741af913c36dd944070b6cbe5aaf682ced6 (patch)
tree899d0b4b01cf9cfec658d048b9eb9779da7db95b /addons/account
parent9864fb6a159f5f145421b4e51b6125e25a69e7c9 (diff)
[FIX] account: count in dashboard statement lines marked 'to_check'
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) <wan@odoo.com>
Diffstat (limited to 'addons/account')
-rw-r--r--addons/account/models/account_journal_dashboard.py2
1 files changed, 1 insertions, 1 deletions
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