diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index cace0f1d30ee95533659bdd195a842257998daea..577ab1837b8789de01aa22a817bdd87a0a85676d 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -169,7 +169,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