diff --git a/addons/account/report/account_partner_ledger.py b/addons/account/report/account_partner_ledger.py index 4211a516aa7..3b05ac3e86d 100644 --- a/addons/account/report/account_partner_ledger.py +++ b/addons/account/report/account_partner_ledger.py @@ -132,7 +132,7 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header): "WHERE l.partner_id = %s " \ "AND l.account_id IN %s AND " + self.query +" " \ " " + RECONCILE_TAG + " "\ - "ORDER BY l.id", + "ORDER BY l.date", (partner.id, tuple(self.account_ids))) res = self.cr.dictfetchall() sum = 0.0