Use dotted notation in order for General Ledger move lines query
issue 4447 review10771002
This commit is contained in:
1 parent
d6c1417536
commit
94581234e9
1 file changed
+2
-4
+2
-4
@@ -1249,12 +1249,10 @@ class GeneralLedger(Report):
|
||||
clause.append(('move.state', '=', 'posted'))
|
||||
lines = MoveLine.search(clause,
|
||||
order=[
|
||||
('account', 'ASC'), # TODO replace by account.id
|
||||
('account.id', 'ASC'),
|
||||
('date', 'ASC'),
|
||||
])
|
||||
key = operator.attrgetter('account')
|
||||
lines.sort(key=key)
|
||||
return groupby(lines, key)
|
||||
return groupby(lines, operator.attrgetter('account'))
|
||||
|
||||
@classmethod
|
||||
def lines(cls, accounts, periods, posted):
|
||||
|
||||
Reference in new issue
Block a user