Skip to content
Snippets Groups Projects
Commit 50bae1c0 authored by wan's avatar wan
Browse files

[FIX] account: journal dashboard graph wrong value

OPW 1918926

Current behavior:
  The sql query groups by date,id in a intermediary table instead of the result. This allows to get data in the wrong order if the statements were not produced sequentially. The fill values are computed in the wrong order and may override correct values.

Desired behavior:
  There is no override of the values correctly computed.

closes odoo/odoo#29936
parent ba39efdf
Branches
Tags
No related merge requests found
......@@ -46,9 +46,9 @@ class account_journal(models.Model):
WHERE c.journal_id = %s
AND c.date > %s
AND c.date <= %s
GROUP BY date, id
ORDER BY date, id) AS b
WHERE a.id = b.stmt_id;"""
GROUP BY date) AS b
WHERE a.id = b.stmt_id
ORDER BY date;"""
self.env.cr.execute(query, (self.id, last_month, today))
bank_stmt = self.env.cr.dictfetchall()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment