projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
992b2d8
)
[FIX] account: recordsets are not sortable in-place
author
Christophe Simonis
<chs@odoo.com>
Wed, 1 Oct 2014 15:51:01 +0000
(17:51 +0200)
committer
Christophe Simonis
<chs@odoo.com>
Wed, 1 Oct 2014 15:51:01 +0000
(17:51 +0200)
addons/account/report/account_partner_ledger.py
patch
|
blob
|
history
diff --git
a/addons/account/report/account_partner_ledger.py
b/addons/account/report/account_partner_ledger.py
index
c683076
..
67480ea
100644
(file)
--- a/
addons/account/report/account_partner_ledger.py
+++ b/
addons/account/report/account_partner_ledger.py
@@
-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):