Skip to content

Commit 3220a75

Browse files
committed
[FIX] base_revision: UX, open Form if only one revision record
1 parent 9a64e4f commit 3220a75

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
@@ -123,4 +123,6 @@ def create_revision(self):
123123
"domain": "[('id', 'in', %s)]" % revision_ids,
124124
"target": "current",
125125
}
126+
if len(revision_ids) == 1:
127+
action.update({"view_mode": "form", "res_id": revision_ids[0]})
126128
return action

0 commit comments

Comments
 (0)