diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index dec1902838ac890eb374e08e2d27b6814d91a8ea..2a70413932b43e729c01daab9d1f685a5c249814 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -175,7 +175,8 @@ class account_journal(models.Model): next_date = start_date + timedelta(days=7) query += " UNION ALL ("+select_sql_clause+" and invoice_date_due >= '"+start_date.strftime(DF)+"' and invoice_date_due < '"+next_date.strftime(DF)+"')" start_date = next_date - + # Ensure results returned by postgres match the order of data list + query += " ORDER BY aggr_date ASC" self.env.cr.execute(query, query_args) query_results = self.env.cr.dictfetchall() is_sample_data = True