Skip to content

Commit

Permalink
[FIX] account_financial_report: general ledger: sort by list_grouped …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
mourad-ehm committed Jan 27, 2025
1 parent 725024b commit e300ad0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions account_financial_report/report/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,12 @@ def _get_report_values(self, docids, data):
account[grouped_by] = False
del account["list_grouped"]
general_ledger = sorted(general_ledger, key=lambda k: k["code"])
for account in general_ledger:
if "list_grouped" in account.keys():
account["list_grouped"] = sorted(
account["list_grouped"], key=lambda x: x["name"]
)

return {
"doc_ids": [wizard_id],
"doc_model": "general.ledger.report.wizard",
Expand Down

0 comments on commit e300ad0

Please sign in to comment.