diff options
| author | alt-odoo <alt@odoo.com> | 2020-11-23 09:16:55 +0000 |
|---|---|---|
| committer | alt-odoo <alt@odoo.com> | 2020-11-23 09:51:15 +0000 |
| commit | 8c0e92cdcdf98daa3c841af97e0bd2e4b015a1b9 (patch) | |
| tree | dda3979233c386abadde2890abc8f602d50f229f /addons | |
| parent | 4c2768846809f6687d03eb0d7f501e57c2c93a90 (diff) | |
[FIX] account: wrong number of statement lines to check in dashboard
On the accounting dashboard, for bank and cash journals, we are
displaying the number of items to check. Since commit https://github.com/odoo/enterprise/commit/b2dd65b9a9c054570d5796a81f2c390c4d8cb6c4,
when getting bank statement data, we are filtering the ones that
are not reconciled using is_reconciled computed field. We should
also include is_reconciled = False when getting dashboard data.
closes odoo/odoo#62150
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/models/account_journal_dashboard.py | 2 |
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 53d2140d52c..eea762488a5 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.append(('journal_id', '=', self.id)) + domain += [('journal_id', '=', self.id),('statement_line_id.is_reconciled', '=', False)] statement_line_ids = self.env['account.move.line'].search(domain).mapped('statement_line_id') return statement_line_ids |
