[FIX] account: recordsets are not sortable in-place

This commit is contained in:
Christophe Simonis 2014-10-01 17:51:01 +02:00
parent 992b2d83d7
commit e883193246
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class third_party_ledger(report_sxw.rml_parse, common_report_header):
"AND account.active ", params)
self.partner_ids = [res['partner_id'] for res in self.cr.dictfetchall()]
objects = obj_partner.browse(self.cr, self.uid, self.partner_ids)
objects.sort(key=lambda x: (x.ref, x.name))
objects = sorted(objects, key=lambda x: (x.ref, x.name))
return super(third_party_ledger, self).set_context(objects, data, self.partner_ids, report_type)
def lines(self, partner):