Skip to content

Commit

Permalink
revert sort
Browse files Browse the repository at this point in the history
  • Loading branch information
janikvonrotz committed Mar 11, 2022
1 parent 06d11bd commit 841db49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Mint System GmbH, Odoo Community Association (OCA)",
"website": "https://www.mint-system.ch",
"category": "Operations",
"version": "13.0.3.7.7",
"version": "13.0.3.7.8",
"license": "AGPL-3",
"depends": ["base", "mail"],
"data": [
Expand Down
2 changes: 1 addition & 1 deletion report/mdl_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def _get_report_values(self, docids, data=None, report_name=''):
items = new_items

# Sort revisions by type_id.sequence and document_id.name
items = sorted(items, key=lambda r: r.document_id.type_id.sequence)
items = sorted(items, key=lambda r: r.document_id.name)
items = sorted(items, key=lambda r: r.document_id.type_id.sequence)

# Set change class key in case of non existing key
change_revisions[change.id][key] = {}
Expand Down

0 comments on commit 841db49

Please sign in to comment.