Skip to content

Commit

Permalink
[FIX] base_revision: UX, open Form if only one revision record
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Aug 20, 2024
1 parent 7608916 commit 87aa303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_revision/models/base_revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,6 @@ def create_revision(self):
"domain": "[('id', 'in', %s)]" % revision_ids,
"target": "current",
}
if len(revision_ids) == 1:
action.update({"view_mode": "form", "res_id": revision_ids[0]})
return action

0 comments on commit 87aa303

Please sign in to comment.