Skip to content

Commit 87aa303

Browse files
committed
[FIX] base_revision: UX, open Form if only one revision record
1 parent 7608916 commit 87aa303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base_revision/models/base_revision.py

+2
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,6 @@ def create_revision(self):
124124
"domain": "[('id', 'in', %s)]" % revision_ids,
125125
"target": "current",
126126
}
127+
if len(revision_ids) == 1:
128+
action.update({"view_mode": "form", "res_id": revision_ids[0]})
127129
return action

0 commit comments

Comments
 (0)